JQuery file size

On the official jQuery website, they say that the file size is 18 thousand, but after downloading I found that it is 53.9 thousand, do I need to do something to compress it after downloading?

+4
source share
2 answers

The website states that it has been changed to 18k and gzipped . Therefore, you need to configure your web server to compress JavaScript files to see this file size.

+9
source

If you want to use less bandwidth both from your server and with your visitors, you must enable Google jQuery for you. Reasons (from encosia.com ):

  • parallelism

. ( - google.load(), . ):

<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>
+8

All Articles