April Archive

Limiting HTTP requests with Django

Limiting HTTP requests with Django

While recently working on a real estate site, I've devised a little trick that you may find handy when loading a lot of conditional JS or CSS files.

For example one of the pages loads a base CSS file, a design specific CSS file, a layout specific CSS file, a gallery CSS file, and some others for other pluggable items. This lead to 8 requests for separate CSS files. If you consider the boiler plate data that must be ...

Posted on April 29, 2009 96 Comments