As sites become more demanding on the client-side, its common to end up with a lot of JavaScript files. Keeping multiple js file on the page increases the size of HTTP Response and your page takes more time to load. But not to worry now. Boxjs allows you to organise your files however you wish, but always deliver them to your users as quickly as possible.
Boxjs gives you the flexibility of a modular loading system whilst providing the speed of a single, compressed JS file.
To get started, include the Boxjs library (only 2kb) in your page.
The Box library merely passes your files to the Boxjs service as a query string, but provides a nice way to manage your files whilst adding a few additional options. BoxJs runs on Amazon EC2 which states "The Amazon EC2 Service Level Agreement commitment is 99.95% availability", so its pretty reliable.
As boxjs is currently free, we can support about 50 requests per second and about 20 000 js files until we clear the cache. We can, however, set up your own instance of boxjs with the above specs which would be more than you will ever need.
BoxJS also compile your CoffeeScript files, compress and minify them too! There are many more option to play with this like setting global options, caching and many more.
Feel free to contact me for any help related to jQuery, I will gladly help you.
Boxjs gives you the flexibility of a modular loading system whilst providing the speed of a single, compressed JS file.
To get started, include the Boxjs library (only 2kb) in your page.
<script src="http://www.boxjs.com/box.js"></script>Then just call Box with your site host URL and an array of files you wish to load.
Box('http://mywebsite.com/scripts/', [ 'plugins/jquery.js', 'plugins/json2.js', 'plugins/jquery-class.js' ]);Boxjs will grab your files, compress them and then deliver one minified and cached JS file to your page.
The Box library merely passes your files to the Boxjs service as a query string, but provides a nice way to manage your files whilst adding a few additional options. BoxJs runs on Amazon EC2 which states "The Amazon EC2 Service Level Agreement commitment is 99.95% availability", so its pretty reliable.
As boxjs is currently free, we can support about 50 requests per second and about 20 000 js files until we clear the cache. We can, however, set up your own instance of boxjs with the above specs which would be more than you will ever need.
BoxJS also compile your CoffeeScript files, compress and minify them too! There are many more option to play with this like setting global options, caching and many more.
Feel free to contact me for any help related to jQuery, I will gladly help you.
No comments:
Post a Comment