Automatic asset versioning in Django

Following on from Ed's "Automatic versioning of CSS, JavaScript and Images" here is a method to version filenames based on modification times to be used in Django as a template tag. This is really handy technique for when you set expires headers to a long way into the…

Avoiding the use of .htaccess for performance

.htaccess files are often used because they allow quick changes to the apache web server configuration and don't require apache to be restarted. However with this flexibility comes a number of performance implications and as a result they should be avoided unless you have absolutely no other way to put…

Does setTimeout solve the DOMContentLoaded problem?

I've recently been building a simple framework for testing the performance of arbitrary JavaScript code. Whilst doing so I was looking at the some information on setTimeout in "JavaScript the Definitive Guide" by David Flanagan. One paragraph made me think of the DOMContentLoaded Problem: "In practice, setTimeout() tells…

CSS Sprite Generator Tool

Ed and I have been busy putting the final touches on our CSS Sprite creation tool which is now available over at http://spritegen.website-performance.org For the uninitiated, a CSS Sprite is a single image file which contains several graphics. Using CSS background positions it's possible to display any…