Forum Moderators: open

Message Too Old, No Replies

version of jquery

version of jquery

         

drooh

12:02 am on Jun 1, 2011 (gmt 0)

10+ Year Member



If the site only needs jquery for one thing and it can be done using an older smaller version of jquery, then could you include the older (smaller) version to save bandwidth and potentially have a greater number of users that already have an older version cached?

So for instance

jquery-1.6.1.min.js is 89k

Where

jquery-1.2.6.pack.js is 31k


The site performs with the smaller older version, so why not use it as it is less in file size?

ProbablyMike

9:59 am on Jun 1, 2011 (gmt 0)

10+ Year Member



The .pack files are smaller, but the browser has to un-pack the code each & every time the page loads, before any jQuery can be executed.

The jquery-1.2.6.min.js is 54k so that could be a good compromise, less to download and nothing to un-pack.