Thursday, November 8, 2007

Combine the JS files

Since the common browsers create ONLY 2 HTTP requests at the same time on loading a page, I decide to combine the seperated JavaScript files into one jq4r.js file. If you have installed this plugin, follow these steps:


  1. Update from the repository

  2. Remove the original ${RAILS_ROOT}/public/javascripts/jquery.js and ${RAILS_ROOT}/public/javascripts/jquery-form.js

  3. Re-execute rake jq4r:install for installing the new jq4r.js file.


You NEVER need to modify your source.

In the following revisions, I will put all the JavaScript code in jq4r.js. How do you feel about it?

No comments: