Categories
Posts

CSS and JavaScript in One File

An MSDN post from 2007 describes how to format a single file to be valid CSS and JavaScript at the same time.

Probably not something I’d use on a regular site, still a clever hack though.

2 replies on “CSS and JavaScript in One File”

Still wouldn’t be the same, local cache is still going to be faster than making a request across the Internet.

I was impressed from the cleverness point of view, not as a serious alternative for a large scale site.

Leave a Reply

Your email address will not be published. Required fields are marked *