Advice needed: Google crawling for single page applicartions with java script
-
Hi Moz community,we have a single page application (enjoywishlist.com) with a lot of content in java script light boxes. There is a lot of valuable content embedded but google can not crawl the content and we can missing out on some opportunities as a result. I was wondering if someone was able to solve a similar issue (besides moving the content from the java script to the HTML body). There appears to be a few services sprouting up to handle single page applications and crawling in google.http://getseojs.com/https://prerender.io/Did anyone use these services? Some feedback would be much appreciated!ThanksAndreas
-
Hi Andreas,
I cannot comment on the getseojs, or prerender I did not use those. However, google can execute "some" JavaScript to find content but Google has limitations.
This article should help: http://moz.com/ugc/can-google-really-access-content-in-javascript-really
Hope this helps!
-
Your content needs to be in the html.
You can hide it with display:none and then show it via javascript, but it needs to be on the page.
I would not use such plug ins, I cant see them fixing the problem and will further complicate your site and crawling -
Not an expert on JS by any stretch, but Richard Baxter at SEO Gadget suggested this post:
http://seogadget.com/javascript-framework-seo/
It's focused on Angular JS, but a lot of the core principles should apply more broadly.