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. Moz Pro
    4. Will a Javascript object be read without pre-rendering?

    Will a Javascript object be read without pre-rendering?

    Moz Pro
    5 3 231
    • 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.
    • brianvest
      brianvest last edited by

      I have site that is in staging. I have a Javascript object on one of my pages. Is there a way to test to see if google crawler will read the js object without pre-rendering in the code?

      http://web-staging.samhillbands.com/bands/

      1 Reply Last reply Reply Quote 0
      • 4RS_John
        4RS_John last edited by

        What do you mean by "Without Pre-Rendering"?

        Google says they can now index some Javascript content. I believe they're using actual browsers, or something very similar, to index web pages. Depending on how true this is, there's a chance they'll index anything you have hidden away in Javascript.

        You can use the "Fetch as Google" tool in Webmaster Tools to see what the Googlebot sees. I just ran a test on my site and it does render Javascript. On my site some page elements appear in a different place with Javascript disabled, and in Google's render of the page they appear in the Javascript-enabled location. If you have actual content in the Javascript I don't know what Google will do with it, but they can at least see the result of your Javascript.

        1 Reply Last reply Reply Quote 2
        • brianvest
          brianvest last edited by

          Pre-rendering - the javascript is a state dropdown.  Content is displayed based on the selection.  I did the Fetch as Googlebot and dont see the javascript.

          4RS_John 1 Reply Last reply Reply Quote 0
          • 4RS_John
            4RS_John @brianvest last edited by

            I don't believe Google will make a selection for each option in a drop-down, even if they're able to see it. The traditional wisdom is to also provide ways to click to each location - so, somewhere there should be a link to each state, then you can have URLs like /bands/arizona and show the bands in Arizona.

            I also have a search-based interface, and I do OK, but our short-term plans include a way to click through to each location without submitting a search form - it should help Google find our content.

            1 Reply Last reply Reply Quote 2
            • Daniel_Marks
              Daniel_Marks last edited by

              The fetch as Googlebot function in GWT is definitely your best bet here.

              Most JavaScript dropdowns I've run into are being indexed properly by Google by now but if your particular JS implementation isn't being executed when fetching as Googlebot, then you'll need to use a solution like prerender.

              1 Reply Last reply Reply Quote 3
              • 1 / 1
              • First post
                Last post
              • I am a PRO member. But will not be able to use the PRO feature. Why?
                roadmap
                roadmap
                0
                3
                69

              • SEOmoz PRO: How to manage a Site with 2 languages on the same domain - without mixing up data?
                inlinear
                inlinear
                0
                3
                446

              • Wordpress.com does no allow google analytics will that effect my seo campaign started with seomoz?
                mysayindia
                mysayindia
                0
                11
                277

              • How do I track SEO performance in individual countries without making dozens of separate campaigns?
                JoelDay
                JoelDay
                0
                2
                336

              • <bs>Will someone give me a "thumbs up" so I can become an Authority and get my SEOMOZ T-Shirt?</bs>
                Francisco_Meza
                Francisco_Meza
                3
                4
                527

              • When will Rank Tracker be mended
                ClaireH-184886
                ClaireH-184886
                0
                8
                937

              • How to Stop SEOMOZ from Crawling a Sub-domain without redoing the whole campaign?
                TheNorthernOffice79
                TheNorthernOffice79
                0
                4
                685

              • Link Count Per Page Including JavaScript Links - Should We Worry About Them?
                AlanMosley
                AlanMosley
                0
                4
                3.0k

              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