Home / Articles  / How to Use jQuery without Compromising SEO Performance
  • kamalesh

    Thank you so much for all helpful tips on implementing jquery without affecting SEO. However is it a good practice of having jquery code in the header section of the page??

    January 14, 2014 at 2:08 am Reply
    • Kirby

      Thanks kamalesh! I assume your talking about placing the tag for loading the jQuery library in the of the HTML page.

      There’s a few ways you can mitigate this to ensure optimized performance. First, is to reference a jQuery library which is hosted on a CDN, like Google or Microsoft. There’s a good chance that visitors have visited other sites with one of these libraries, which is probably cached on their devices.

      You can also optimize the loading by adding additional parameters to the tag. Adding “async” will load the script asynchronously with the rest of the content. Adding “defer” will wait to load the script until all other content has rendered:

      January 14, 2014 at 12:40 pm Reply
Post a Comment

Find out how we can grow your business

Subscribe to Newsletter