The main navigation is using JS, will this have a negative impact on SEO?
-
Hi mozzers,
We just redesigned our homepage and discovered that our main nav is using JS and when disabling JS, no main nav links was showing up. Is this still considered bad practice for SEO? https://cl.ly/14ccf2509478
thanks
-
Thanks Jose!
-
Googlebot does not render JavaScript
We hear very often about JavaScript rendering is the assumption that the crawler is responsible for the rendering. But that's not the case. The rendering is done by the indexer (from Google Caffeine).More specifically, the Web Rendering Service (WRS), which is part of Google Caffeine. And this is exactly where the second great difficulty lies in the area of JavaScript SEO.
Gary Illyes says: "Also, to clarify, WRS is a subsystem of Caffeine, just like the PageRanker (cos yes, we still use it) or the canonicalization algorithm."
The process flow between the crawler and the indexer:
HTML files are downloaded.
CSS and JavaScript data will be downloaded in parallel.
WRS (Web Rendering Service) (part of Google Caffeine) is used to run JS.
WRS renders all files.
Now Google Caffeine can index the content if necessary.
And that's when Googlebot can crawl new links.
Why is that a problem? For the crawler to be able to enter the content and follow the links, it must first pass the data to the indexer. The indexer renders the content and returns it to the crawlers. Only now can the crawler see the content and follow the links. On the next page, the game starts again. Page by page. (many processes)Unlike conventional pages, where the crawler crawls numerous pages and, after crawling, passes everything collectively to the indexer. (few processes)
This process presents another challenge to search engines.
Regards
-
The only bad SEO Practice regarding JS that I've of is trying to hide the JS files from Search Engines, apparently, Google needs to render a whole page as it indexing it; so blocking any JS (& CSS for that matter) isn't a good thing.
-
Hi There,
JS rendered UI isn't negative, it is however not a good practice also.
You can find complete information to the concept of JS rendered pages and UI on this link, https://www.portent.com/blog/seo/javascript-bad-for-seo.htm .
I hope this helps.
Regards,
Vijay
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
-
JavaScript navigation causing an SEO problem?
Hi - I'm looking at a site using JavaScript dropdown navigation - Google can crawl the whole site but my thinking is this - If I ensure the dropdown navigation is functioning fully when JS is switched off, I may facilitate the search engine bots? At the moment I can't get any dropdown effect if I turn JS off on the site but if I look at a cached page (text version) the dropdown links are visible and working. I am wondering whether any crawl benefit is there if you take this a step further and ensure the drop downs are actually visible and working when JS is switched off? I would welcome your thoughts on this. Thanks in advance, Luke - 07966 729775
Intermediate & Advanced SEO | | McTaggart0 -
SEO Impacts if changing from https to http (or viceversa)
Hi there, I want to take the benefits (both Google's SEO rewards and increased site speed) from putting on-line my site (it's not yet live) with a SSL certificate and make it use the new HTTP/2 protocol. Now the question is: if in the future I won't renew the SSL certificate (because too expensive, maybe), so the site will run through normal HTTP, do I risk to see changes of my pages on the SERPs? Will I lose all positions that I got? Thanks in advance for your tips!
Intermediate & Advanced SEO | | valeron0 -
SEO - is it site or page
Hi When we're talking about SEO does the search engine only look at the whole site in general or do they look at the individual page when we're talking about SERP? So if you have a keyword "my search term" Does the search engine look at the site first or the page with the term on then rank you or is it the page then the site.
Intermediate & Advanced SEO | | Cocoonfxmedia0 -
Better to use specific cities or counties for SEO geographics?
Hello SEO experts! We are encountering a difficult situation at our marketing firm with a client who wants to optimize her site for keyworks + counties, as she doesn't want to be restricted to one specific city. We have suggested alternate solutions like location pages, utilization of H2's, etc, however, she wants to know the effectiveness of using a specific city (ie: Winona, MN) vs a county (ie: Winona County, MN) for SEO purposes. The research I have conducted thus far hasn't gotten me very far, basically I'm seeing that it all comes back to what people search for (cleaning services in Winona, MN vs. cleaning services in Winona County, MN). Does anyone have any insight into this issue?
Intermediate & Advanced SEO | | MLTGroup0 -
Video SEO
Hello All! I'm wondering about the best way to link build and carry on my video trend. I love to create video's with all of my articles as I feel it adds an extra element to just boring old text! The problem is that my current 25 links from Youtube are all NoFollow. This didn't originally bother me, but it's starting too. Is there a couple of websites that I could upload my article/ video to and gain a link from in a similar manner? Come to think of it, is this a good SEO tactic to use?
Intermediate & Advanced SEO | | Paul_Tovey0 -
SEO for bigcommerce site
I have a site on bigcommerce platform .from Where do i need start SEO for these types of ecommerce sites.Looking for Experts ideas . Thank you.
Intermediate & Advanced SEO | | innofidelity0 -
Are there any negative effects to using a 301 redirect from a page to another internal page?
For example, from http://www.dog.com/toys to http://www.dog.com/chew-toys. In my situation, the main purpose of the 301 redirect is to replace the page with a new internal page that has a better optimized URL. This will be executed across multiple pages (about 20). None of these pages hold any search rankings but do carry a decent amount of page authority.
Intermediate & Advanced SEO | | Visually0 -
When using ALT tags - are spaces, hyphens or underscores preferred by Google when using multiple words?
when plugging ALT tags into images, does Google prefer spaces, hyphens, or underscores? I know with filenames, hyphens or underscores are preferred and spaces are replaced with %20. Thoughts? Thanks!
Intermediate & Advanced SEO | | BrooklynCruiser3