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
        • How can i use multiple domain for one website?
          R0bin_L0rd
          R0bin_L0rd
          0
          2
          62

        • Optimal use of keywords in header tag
          Serg155
          Serg155
          0
          3
          217

        • 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

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

        • Setting title tag with javascript/jquery
          RobertFisher
          RobertFisher
          0
          6
          880

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

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

        • Our Development team is planning to make our website nearly 100% AJAX and JavaScript. My concern is crawlability or lack thereof. Their contention is that Google can read the pages using the new #! URL string. What do you recommend?
          john4math
          john4math
          0
          2
          651

        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