Will two navigation components (one removed by Javascript) impact Google rankings?
-
We are trying to eliminate tedium when developing complexly designed responsive navigations for mobile, desktop and tablet. The changes between breakpoints in our designs are too complex to be handled with css, so we are literally grabbing individual elements with javascript and moving them around. What we'd like to do instead is have two different navigations on the page, and toggle which one is on the DOM based on breakpoint. These navigations will have the same links but different markup.
Will having two navigation components on the page at page load negatively impact our Google SEO rankings or potential to rank, even if we are removing one or the other from the DOM with JavaScript?
-
If I understand it correctly, you are trying to present different content/navigation to different devices. It is fine from SEO point of view, as long as you are not manipulating the content ( then it would be viewed as cloaking). Changing the markup for navigation isn't a bad thing till the time your links have good SEO friendly URLs.
You should take help of Fetch as Google feature to review how spiders will look at your content on mobile/desktop devices.
.I hope this helps, Let me know if you have further questions.
Thanks,
Vijay
-
Great question, don't have definitive answer.
My guess is that Google would use the final page source (post javascript) since this is what is does when a website adds content via javascript post load. So if you remove the links, they shouldn't be counted.
I'd test this by fetching as google and seeing what it sees as the source.
--
Overall, I don't think having double links to the same URLs will hurt your SEO much. Overall consensus is that only the first link will be counted anyways.
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
-
Will google be able to crawl all of the pages given that the pages displayed or the info on a page varies according to the city of a user?
So the website I am working for asks for a location before displaying the product pages. There are two cities with multiple warehouses. Based on the users' location, the product pages available in the warehouse serving only in that area are shown. If the user skips location, default warehouse-related product pages are shown. The APIs are all location-based.
Intermediate & Advanced SEO | | Airlift0 -
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
Intermediate & Advanced SEO | | Ty19861 -
Tricky: Should I remove this extra navigation?
Hello there, I am working on a website in which the owner has written navigation links manually at the end of all pages/posts. Example. Page/Post Entry content. Go to home click here,
Intermediate & Advanced SEO | | Ganacontrol1233
Menu item 2
Menu item 3
Menu item 4 etc We already have navigation links for that on the main menu and additionally on a sidebar. But we are two years in, and they have always been there. Is there a chance removing all these links will better internal pagerank distribution? Website has millions of views/month so I want to be sure - if I should just leave them as is or remove them all.
Or what extra questions should I be asking myself about this.0 -
Infographic Google’s 200 Ranking Factors by Backlinko
Wow, I just found this awesome Infographic created by Brian Dean of Backlinko. It's really nice share by him, putting all efforts together into creating this Top 200 Ranking Factors what everybody wants to know now. I am just right now seeing and observing the whole things and points mentioned in this infographic and like to want you all of Moz members to discuss over this. 069581c30c35cb5a6294cfc6e3799db4.jpg
Intermediate & Advanced SEO | | Futura1 -
Howcome Google is indexing one day 2500 pages and the other day only 150 then 2000 again ect?
This is about an big affiliate website of an customer of us, running with datafeeds... Bad things about datafeeds: Duplicate Content (product descriptions) Verrryyyy Much (thin) product pages (sometimes better to noindex, i know, but this customer doesn't want to do that)
Intermediate & Advanced SEO | | Zanox0 -
How to remove "Results 1 - 20 of 47" from Google SERP Snippet
We are trying to optimise our SERP snippet in Google to increase CTR, but we have this horrid "Results 1 - 20 of 47" in the description. We feel this gets in the way of the message and so wish to remove it, but how?? Any ideas apart from removing the paging from the page?
Intermediate & Advanced SEO | | speedyseo0 -
How do Google Site Search pages rank
We have started using Google Site Search (via an XML feed from Google) to power our search engines. So we have a whole load of pages we could link to of the format /search?q=keyword, and we are considering doing away with our more traditional category listing pages (e.g. /biology - not powered by GSS) which account for much of our current natural search landing pages. My question is would the GoogleBot treat these search pages any differently? My fear is it would somehow see them as duplicate search results and downgrade their links. However, since we are coding the XML from GSS into our own HTML format, it may not even be able to tell.
Intermediate & Advanced SEO | | EdwardUpton610