Call (877) SITE-OPT (748-3678)

Code: Bundle Your Scripts

Chapter 8 - Ajax Optimization

JavaScript developers commonly break out their JavaScript into separate .js files and then include them in the document, like so:

<script src="text/javascript" src="global.js"></script>
<script src="text/javascript" src="navigation.js"></script>
<script src="text/javascript" src="popup.js"></script>
<script src="text/javascript" src="lightbox.js"></script>

Bundling them into one file eliminates the two-connection limit problem.

<script src="text/javascript" src="bigbundle.js"></script>
Copyright © 2002-2017 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In