Optimizing a website which uses JavaScript and jQuery
-
Just a quick question (or 2)
If I have divs which are hidden on my page, but are displayed when
-
a user clicks on a p tag and the hidden div is displayed using jquery
-
a user clicks on an a tag and the hidden div is displayed using jquery with the href being cancelled
in both examples, will the hidden content be optimized, or will the fact it is initially hidden make it harder to optimize?
Thanks for any answers!
-
-
Google will see the content as plain text, check for example seobrowser.com.
However, there is a chance that Google is parsing the CSS to find out that this particular content is hidden, and therefore devalues it. I don't recall ever reading about this, but it would make some sense because many visitors won't see the text.
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
-
Optimized filename management for SEO
Hi, I'm currently undertaking a project to manage better my images and to rank for image searches. My site uses mod_pagespeed to optimises images, therefore image urls are changed to a pretty seo unfriendly url or even sometimes inlined within my page. On top of that I generally resize all my images by passing the desired file dimension within the image url in order to optimise the loading time of my site. Is there a way to provide a hint to google that I have a much better quality image with higher dimensions and better name? Can i specify within my image sitemap an image that actually does have different dimensions and a different within the page it serves? Are there better tricks to achieve that? Thanks in advance
Technical SEO | | mattam0 -
Duplicate Version of My Website
Hello Again, Looking for a little help to help me understand what exactly is going on here. Ive taken over maintenance of a website and have so far fixed a lot of issues. ahrefs has shown me that a second version of my companies website exists that exists at a second url. This second website is linked to the actual company website like I haven't seen before. www(dot)#(dot)co(dot)uk is the main company website. But a second accessible version exists and is accessible at www(dot)#(dot)co(dot)uk The instruments version is a direct copy and all of the links point directly to my main site. Any changes I make on the main version are automatically applied to the other version. It shows up as a SPAM back link on moz as all of the link points to my website etc Ideally in my mind, the instruments version homepage should simply re-direct to the main homepage to solve this "duplicate content and spammy backlink" issue however, the instruments version is the same suffix that all our company emails work with. Basically, HELP lol. I have no understanding of how this is set up, and the best way in which to deal and if it could affect anything such as company emails.
Technical SEO | | ATP0 -
Optimizing internal links or over-optimizing?
For a while I hated the look of the internal links page of Google Web Master Tools account for a certain site. With a total of 120+K pages, the top internal link was the one pointing to "FAQ". With around 1M links. That was due to the fact, on every single page, both the header and the footer where presenting 5 links to the most popular questions. The traffic of those FAQ pages is non-existent, the anchor text is not SEO interesting, and theoretically 1M useless internal links is detrimental for page juice flow. So I removed them. Replacing the anchor with javascript to keep the functionality. I actually left only 1 “pure” link to the FAQ page in the footer (site wide). And overnight, the internal links page of that GWT account disappeared. Blank, no links. Now... Mhhh... I feel like... Ops! Yes I am getting paranoid at the idea the sudden disappearance of 1M internal links was not appreciated by google bot. Anyone had similar experience? Could this be seen by google bot as over-optimizing and be penalized? Did I possibly triggered a manual review of the website removing 1M internal links? I remember Matt Cutts saying adding or removing 1M pages (pages) would trigger a flag at google spam team and lead to a manual review, but 1M internal links? Any idea?
Technical SEO | | max.favilli0 -
Having javascript in the top of the source code
Dear Moz-community, In our company, we are torn about the influence of having a ton of javascript on the top of our source code - while our Tech guys are downplaying it's influence, us marketeers aren't quite sure. The link is here: view-source:http://www.bettingexpert.com/tips/football/italy/serie-a It is the javascript that is loaded right after the Would this be a problem with Google? Thank you very much,
Technical SEO | | BetterCollective
William0 -
Including videos on an eCommerce website.
Hi,
Technical SEO | | ChrisHolgate
We're about to start integrating video content on our eCommerece site in order to bolster the quantity and diversity of useful content that each page presents a potential customer. We’re talking product reviews, information relating to the differences between different products and company information. From an SEO perspective it has been suggested that Google will like this however I have a question regarding the actual method of integration. Usually I would just insert some embed code linking to the correct video on our YouTube channel however I’m really conscious that a search engine will just see the embed code, notice the page loads slightly slower and not really gain anything useful from the video file. I’m assuming that this isn’t the case but I have several questions: - Would you host on YouTube and simply insert the embed code in to the page. Would any alternative site (or even self-hosted) be preferable? - Should I be padding out either side of the embed code with a description of the video and an annotation on OUR site? - Does Google actually look at the link and ascertain the relevance of the video file to the actual page? If it does this does it gain anything useful that could help on-page SEO? These are probably all pretty basic questions for which I do apologise but I want to make sure that before spending a sizable amount of time on this that we start off with a correct integration! Many thanks0 -
Website redesign launch
Hello everyone, I am in the process of having my consulting website redesigned and have a question about how this may impact SEO. I will be using the same URL as I did before, just simply replacing an old website with a new website. Obviously the URL structure will change slightly since I am changing navigation names. Page titles will also change. Do I need to do anything special to ensure that all of the pages from the old website are redirected to the new website? For example, should I do a page level redirect for each page that remains the same? So that the old "services" page is pointed to the new "services" page? Or can I simply do a redirect at the index page level? Thank you in advance for any advice! Best, Linda
Technical SEO | | LindaSchumacher0 -
How do I resolve Twin domains? redirect website.com to www.website.com?
I am new to this website. Tried to run a campain and got a warning that website.com resolves to www.website.com which hinders SERP by competing for Keyword indexing!. (website is my domain name) Would appreciate help with this. Thanks. S.H. PS: here is the exact wording of error : We have detected that the domain www.yfvaccine.com and the domain yfvaccine.com both respond to web requests and do not redirect. Having two "twin" domains that both resolve forces them to battle for SERP positions, making your SEO efforts less effective. We suggest redirecting one, then entering the other here.
Technical SEO | | sherohass0 -
Websites on same c class IP address
If two websites are on the same c class IP address, what does it mean ? Does two websites belong to the same company ?
Technical SEO | | seoug_20050