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. Setting title tag with javascript/jquery

    Setting title tag with javascript/jquery

    Technical SEO Issues
    6 3 880
    • 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.
    • peterallen
      peterallen last edited by

      Hi there,

      I'm looking for some advice. I've recently implemented a few jQuery functions which gets specific content from the page and then sets the title and description.

      See working example here.

      It seems to work fine but my question I have is whether Google bots can read it and whether it might actually hinder my SEO efforts?

      Any advice would be really appreciated!

      Peter

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

        No, Google won't see it - you're meant to make your site accessible to those with JS turned off. Check using GWT 'fetch as Google'.

        You could, however, do this with PHP.

        peterallen 1 Reply Last reply Reply Quote 2
        • RobertFisher
          RobertFisher last edited by

          Peter

          I agree with Jon,

          Also, your page is loading quite slowly when I use Google Pagespeed insights. You might want to run it on the site and just look at what it is suggesting.

          Hope this helps you out,

          Robert

          peterallen 1 Reply Last reply Reply Quote 1
          • peterallen
            peterallen @driftingbass last edited by

            Thanks for the reply!

            Unfortunately I cannot do this in PHP as the property details are rendered using XML and I don't have access to the files as it's saved on our software providers server (they have also said they would not know how to implement this) - I also have little to no experience with XML so that's why I thought i'd try javascript.

            1 Reply Last reply Reply Quote 0
            • peterallen
              peterallen @RobertFisher last edited by

              Robert,

              Thanks for the reply!

              The main reason for changing the title/description tags with javascript was to make the pages more indexable (and readable on google). Would you say these pages will provide any SEO benefits to the rest of the website? Or would it be better to set a nofollow tag?

              I will have a look into speeding up the property pages however it's most likely because the information is being rendered on our software providers server which at the same time is probably handling 1000's of other requests aswell 😞

              RobertFisher 1 Reply Last reply Reply Quote 0
              • RobertFisher
                RobertFisher @peterallen last edited by

                I don't think your javascript usage is helping you. I am not sure as to why you would nofollow something you sought to improve for SEO.

                As to speed, you have more issues than your provider's server. Download Google Insights and run the page speed tool. You will see what I mean.

                Best,

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Google Sites website https://www.opcfitness.com/ title NOT GOOD FOR SEO
                  MiriamEllis
                  MiriamEllis
                  0
                  2
                  51

                • Redirect /label/ to /tags/
                  Taiger
                  Taiger
                  0
                  3
                  143

                • Exact Match Domain & Title Tag / URL
                  Kusanagi17
                  Kusanagi17
                  0
                  3
                  552

                • Is <title>different from <h1> and "meta tag title"?</title>
                  Jerrion
                  Jerrion
                  0
                  5
                  455

                • Block /tag/ or not?
                  MyAllenMedia
                  MyAllenMedia
                  0
                  7
                  571

                • Duplicate titles / canonical / Drupal
                  Atlanta-SMO
                  Atlanta-SMO
                  0
                  4
                  1.5k

                • Having both <title>and <meta name="title"...> on a web page?</title>
                  EricaMcGillivray
                  EricaMcGillivray
                  0
                  7
                  6.7k

                • Why "title missing or empty" when title tag exists?
                  groovykarma
                  groovykarma
                  0
                  5
                  3.3k

                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