Magento: Number of HTTP Requests per Page

In order to improve page load and processing time, it is important to reduce the number of HTTP requests per page. Magento Enterprise Edition allows combining multiple JavaScript files and style sheets into a smaller number of files.

This process is fully under the control of a theme developer who implements it through the flexible system of theme layouts instead of directly including the JavaScript files from within the templates.

The following is the example of how the number of JavaScript files can be properly reduced:










The previous layout file example combines the two scripts in a single file that will be added to the page with one request to

js/index.php?c=auto&f=,custom_js/gallery.js,custom_js/intro.js.

0 comments: