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. Javascript

    Javascript

    Technical SEO Issues
    7 3 1.3k
    • 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.
    • PeterM22
      PeterM22 last edited by

      Hi mozzers,

      For my website I use various affiliate programs on commission junction. Some of the text ads are in javascript. Will google read the text ads or not?

      Cheers,

      Peter

      1 Reply Last reply Reply Quote 0
      • DanDeceuster
        DanDeceuster last edited by

        Google has said they can execute about 90% or so of all javascript at this point, so there is a good chance Google will be able to see these affiliate links, even if they are being done in javascript.

        PeterM22 TaitLarson 2 Replies Last reply Reply Quote 3
        • PeterM22
          PeterM22 @DanDeceuster last edited by

          very helpful thanks!

          1 Reply Last reply Reply Quote 0
          • TaitLarson
            TaitLarson @DanDeceuster last edited by

            Hey Daniel,

            Would you mind diving into that statement a little more?  I didn't realize that Google could execute 90% of javascript.  Do you think they will load in external javascript files?  Does google make ajax calls?

            I only ask the questions b/c I have a web site who's home page that has too many links and too much HTML.  I'd love to use javascript to do some progressive rendering and keep some links and additonal HTML out of the initial HTTP response sent back when someone requests a page on our site.

            Thanks in advance!

            Tait

            DanDeceuster TaitLarson 3 Replies Last reply Reply Quote 0
            • DanDeceuster
              DanDeceuster @TaitLarson last edited by

              Yeah let me point you to some resources on this:

              http://www.seomoz.org/ugc/new-reality-google-follows-links-in-javascript-4930

              Your best resource is from Google here:

              http://code.google.com/apis/searchappliance/documentation/68/admin_crawl/AdvancedTopics.html#javascript

              To your question though, I do believe Google will execute external javascript files. Ajax stuff I'm not as sure about. They have a primer on this here:

              <cite>code.google.com/web/ajaxcrawling/docs/learn-more.html</cite>

              The 90% thing I recall from SMX advanced last year I believe. Basically people would try to hide internal links in javascript since using nofollow for pagerank sculpting was debunked by Matt Cutts in 2009. Turned out Google could see most links being created in javascript.

              You can read up on that second link there in javascript crawling from Google and it goes into a lot of detail about what they can do, hope it helps.

              1 Reply Last reply Reply Quote 1
              • TaitLarson
                TaitLarson @TaitLarson last edited by

                Thanks very much for this.  Can't wait to check these resources out.

                1 Reply Last reply Reply Quote 0
                • TaitLarson
                  TaitLarson @TaitLarson last edited by

                  Again, great resources, Daniel.  The first link provides some empirical evidence that ajax based links do get interpreted.  SEOmofo had a nice recommendation that should stop google from indexing your JS if need be.  He basically said put your JS in an external file that you disallow in robots.txt.

                  From your second link

                  The search appliance only executes scripts embedded inside a document. The search appliance does not support:

                  • DOM tracking to support calls, such as document.getElementById
                  • External scripts execution
                  • AJAX execution

                  Not exactly sure what "AJAX execution" means.  However, if it means downloading JSON or JS and evaluating it that makes sense.  Perhaps not external JS gets executed by google?

                  The third link discusses the "agreement" you can make with a crawler if you have an ajax based site using hash bang urls.  Not super relevant for me but good to know so thanks!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Bing & JavaScript?
                    martinxm
                    martinxm
                    0
                    2
                    66

                  • Javascript redirects -- what are the SEO pitfalls?
                    customerparadigm.com
                    customerparadigm.com
                    0
                    2
                    4.7k

                  • Meta Refresh for No Javascript message
                    LawrenceNeal
                    LawrenceNeal
                    0
                    5
                    341

                  • Do the engine spiders see this javascript?
                    AdamThompson
                    AdamThompson
                    0
                    3
                    468

                  • Javascript bad for SEO?
                    AdamThompson
                    AdamThompson
                    0
                    3
                    2.3k

                  • How valuable or not is javascript linkback from a competitor?
                    StalkerB
                    StalkerB
                    0
                    3
                    772

                  • Javascript funtion as link? Why not show up?
                    BlinkWeb
                    BlinkWeb
                    0
                    2
                    913

                  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