55KB of JQUERY is too big for my application

Is there a reason why you need to make it smaller? Coming in at a size of 55kb is rather insignificant nowadays.

If you need it faster, try having it link off of Google, it's always cached on their server. Look at their documentation here.

You can also try downloading your Javascript files asynchronously.


Using gzip compression it brings it down to 19kb. It's going to be cached from there on out, so I'm not sure why it's an issue. That's far less than most decent sized images.

Using a CDN is also an option if you don't mind someone else hosting your code and your issue is just overall bandwidth.


I think the answer to your question is 'probably not'.

But consider these points:

  • You don't have to serve it on every page request, sensible HTTP response headers should mean it only needs to be downloaded once per client browser.
  • If you use the Google CDN for jQuery, your client may not need to download it at all, as there is a very good chance they will already have it cached.

i.e.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>