Will a Javascript object be read without pre-rendering?
-
I have site that is in staging. I have a Javascript object on one of my pages. Is there a way to test to see if google crawler will read the js object without pre-rendering in the code?
-
The fetch as Googlebot function in GWT is definitely your best bet here.
Most JavaScript dropdowns I've run into are being indexed properly by Google by now but if your particular JS implementation isn't being executed when fetching as Googlebot, then you'll need to use a solution like prerender.
-
I don't believe Google will make a selection for each option in a drop-down, even if they're able to see it. The traditional wisdom is to also provide ways to click to each location - so, somewhere there should be a link to each state, then you can have URLs like /bands/arizona and show the bands in Arizona.
I also have a search-based interface, and I do OK, but our short-term plans include a way to click through to each location without submitting a search form - it should help Google find our content.
-
Pre-rendering - the javascript is a state dropdown. Content is displayed based on the selection. I did the Fetch as Googlebot and dont see the javascript.
-
What do you mean by "Without Pre-Rendering"?
Google says they can now index some Javascript content. I believe they're using actual browsers, or something very similar, to index web pages. Depending on how true this is, there's a chance they'll index anything you have hidden away in Javascript.
You can use the "Fetch as Google" tool in Webmaster Tools to see what the Googlebot sees. I just ran a test on my site and it does render Javascript. On my site some page elements appear in a different place with Javascript disabled, and in Google's render of the page they appear in the Javascript-enabled location. If you have actual content in the Javascript I don't know what Google will do with it, but they can at least see the result of your Javascript.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Why are there significant changes in the amount of duplicate content without any known action?
I've noticed a surprisingly rapid change in duplicate content over the past month. I'd noticed ~6,000 instances of duplicate content, after disavowing bad links we went down to 3k, this makes perfect sense to me. But after that, without doing anything whatsoever, from last Thursday, the 20th, to yesterday the instances of duplicate content decreased again down to 2k. Could this just be a delayed indexing of pages or are there other factors here? Thanks for the help.
Moz Pro | | allurez0 -
New Google AdWords Tool: How will this change your KWR?
Now that Google is debuting its new Google Adwords Keyword tool, how will this affect the way you do keyword research? Are there other tools you use?
Moz Pro | | alhallinan0 -
How do you search for mentions of your brand without searching within your own site
We have a social network site and we monitor mentions. However, when we search we are finding content from our site being included. How do i filter the content to exclude my site.
Moz Pro | | seoworx1230 -
When will links appear
When will links appear? Hi I submitted one of our products to a range of beauty bloggers and all of the reviews came back, really positive, along with links to our site. However when I run a back link report in open site explorer only one of these links is showing up even though the links all went live at about the same time. Can any one explain this in discrepancy?
Moz Pro | | Hardley10 -
Added to product title showing the discount, will it affect the product rankings?
I've added the savings info to a few products to see if I get any more visits from google merchant, example; After Party | Save £5.40. will it harm the products ranking or merchant feed? http://www.thehairroom.co.uk/tigi-bed-head-styling-products/tigi-bed-head-after-party.htm Thank you Mark
Moz Pro | | smoki6660 -
Question to SEOMOZ when will the On-Page Optimization tool be Updated
Hi, When will your On-page Optimization Tool be updated to reflect the Over Optimization Penalty which is coming. I would think that grading out at an 'A' will have adverse effects.
Moz Pro | | Bucky0 -
When will Rank Tracker be mended
I have been waiting for many days now to use rank tracker but it is still broke. when i put the keyword into rank tracker the wheel just goes around and around and brings no results. Can anyone from the semoz team let me know when it will be mended
Moz Pro | | ClaireH-1848860