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:
Post a Comment