The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Optimizing a website which uses JavaScript and jQuery

    Optimizing a website which uses JavaScript and jQuery

    Technical SEO Issues
    2 2 426
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PhatJP
      PhatJP last edited by

      Just a quick question (or 2)

      If I have divs which are hidden on my page, but are displayed when

      1. a user clicks on a p tag and the hidden div is displayed using jquery

      2. 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!

      1 Reply Last reply Reply Quote 0
      • Theo-NL
        Theo-NL last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • Hi, we are wanting to test a new version of one particular page on our website. What's the best way to run a test for a week without harming rankings. Do we use a 302 redirect or direct 100% of traffic using a tool like Optimizely?
          WebElaine
          WebElaine
          0
          2
          33

        • I am Using Wix website creator. Will google be able to read the javascript?
          vcj
          vcj
          0
          2
          118

        • Images, CSS and Javascript on subdomain or external website
          JordanLowry
          JordanLowry
          0
          2
          1.4k

        • Using Javascript to Display Responsive Images?
          canterburry
          canterburry
          0
          3
          110

        • Hiding Duplicate Content using Javascript
          MagicDude4Eva
          MagicDude4Eva
          0
          3
          531

        • Do You Have To Have Access to Website Code to Use Open Graph
          GeorgeAndrews
          GeorgeAndrews
          0
          3
          357

        • Give your top 3 of best optimized websites
          PlusPort
          PlusPort
          0
          3
          383

        • Optimizing a website which uses information from a database
          PhatJP
          PhatJP
          0
          4
          482

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy