Modern browsers support gzip/deflate compression and http pipelining, which helps speed up my page being loaded by the client’s browsers.
I came across a great technique for optimizing images, so I was wondering if there is a way to bundle css/js/html (the plain text) files together into a single stream so that my web pages can be delivered faster.
Your help is kindly appreciated.
Regards,
Richard
I presume you’ve had a look at the excellent YSlow add-on for Firefox which gives some excellent tips on speeding up download times.
You can certainly combine js / css files on the server before being downloaded, but you wouldn’t want to actually combine the html+js+css into a single stream. The simple reason for this is browser caching. The js and css files are only downloaded once, then your html is downloaded for every new page. If the js and css are combined into the html, then essentially every page is different and nothing be cached.