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
        • I am Using Wix website creator. Will google be able to read the javascript?
          vcj
          vcj
          0
          2
          118

        • Using Product Page Content from an Offline Website
          10dales
          10dales
          0
          9
          155

        • How do I optimize a website for SEO for a client that is using a subdirectory as a seperate website?
          KristinaKledzik
          KristinaKledzik
          0
          4
          132

        • Hiding Duplicate Content using Javascript
          MagicDude4Eva
          MagicDude4Eva
          0
          3
          531

        • 301 redirect using javascript
          lcallander
          lcallander
          0
          6
          35.3k

        • As a wholesale website can our independent retailer's website use (copy) our content?
          ewanTHH
          ewanTHH
          0
          5
          514

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

        • How to attach at text to image that other websites use from my website
          melody-anne
          melody-anne
          0
          2
          489

        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

        Join our newsletter
        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