On jQuery's official website, they say the minified file size is 18k, but after downloading, I found that is 53.9K, do I have to do something to compress it after downloading?
+7
A:
The website states it's 18k minified and gzipped. So you need to setup your web server to compress JavaScript files to see that file size.
Ryan Doherty
2009-01-30 03:34:51
+7
A:
If you want to use less bandwidth both from your server, and to your visitors, you should let Google host jQuery for you. Reasons (from encosia.com):
- Decreased Latency
- Increased parallelism
- Better caching
Here is one way to do it. (The other way is with google.load(), see the link above):
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// Your code here
});
</script>
Espo
2009-01-30 07:03:04
From http://code.google.com/apis/ajaxlibs/documentation/ : The AJAX Libraries API is a content distribution network and loading architecture for the most popular, open source JavaScript libraries. By using the google.load() method, your application has high speed, globally available access to a growing list of the most popular, open source JavaScript libraries.
Espo
2009-12-14 09:52:14