/plushcap/analysis/cloudflare/combining-javascript-css-a-better-way

Combining Javascript & CSS, a Better Way

What's this blog post about?

The text discusses the conventional wisdom in web performance circles that suggests combining multiple JavaScript and CSS files to reduce HTTP requests. However, it highlights several problems with this approach, such as clobbering namespace, becoming unwieldy, invalidating cache, losing benefits of cross-site CDNs, and difficulty in combining third-party scripts. The author introduces CloudFlare's Rocket Loader, which automatically detects tags that require a new HTTP request and streams the individual files through one request, providing benefits of HTTP request reduction without downsides of file combination. It also mentions how users can manually or automatically enable Rocket Loader on their websites.

Company
Cloudflare

Date published
Oct. 3, 2011

Author(s)
Matthew Prince

Word count
702

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.