Have you tested the load times?
Hi all.
I have recently started using a few jQuery elements on a site I am updating. While they work great, I am a bit concerned about how much load time they may add to the pages.
The site already has a fantastic seo record and on of the main factors is the fast load time.
Does anyone have any experiences in this area?
Thanks
Have you tested the load times?
Hi,
Four tips, apologies if you are doing these already...
Use the minified version of jquery
Load jquery from a Contend Delivery Network (CDN) -
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
Place your jquery includes / functions / etc at the bottom of your page just before your closing </body> tag
Make sure your selectors are targetting specific elements on the ID attribute - $("#elementID").click(function(){... (this is the fastest jquery selector, try to avoid using the other ones like class names, element names etc...)
Hi
Thanks for the help. I will try them out.
I am getting access to a dev server later this week so I should find out then.
If I find anything interesting I will report back.