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.
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”
Or better yet, switch to HTTP/2 which can download several assets in parallel 😉
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.