I have been working on this quite bit over the last couple of days, and it's time I got back to client stuff.
The article is very close to what I have implemented here:
http://cms-1.doublespark.co.uk
I use to have around 16 css and js files loading.
All files needed for the layout are now combined in to 1 css file and 1 js file, using minify.
All css and js files that are called dynamically from extensions are also now redirect to minify using the following .htaccess rules:
Code:
# Prepend .css and .js file requests with min/?f= so that they are minified
RewriteRule \.css$ /min/f=%{REQUEST_URI}
RewriteRule \.js$ /min/f=%{REQUEST_URI}
This has meant that the overall number of external files loaded has now reduced from 16 to 5 (and even those that are not grouped are still minified).Initial page load time have improved considerably as a result.
It's been well worth the effort, and I have both mootools and jQuery running nicely side by side as well :-)
Bookmarks