Even in this time of rapid evolving browsers and almost unlimited bandwidth and throughput speed, the loading speed of a page is influenced heavily by the following two factors:
* Your physical distance from the content server
Browsers limit the amount of concurrent connections to the same server to download included files. Values range from 6 to 9 to 15, depending on your browser type and version. That will mean that if you include a lot of small files, the will be queued in some cases, leading to longer load times.
Even in this time of high-speed networks, added distance means added latency to you connections. When downloading many files, these added latencies can slow down your page loading.
With a simple hack, we can add the use of CDN to our ImpressCMS site.
In header.php, find the following lines:
Replace that line with the following if you want to use the Microsoft CDN:
or if you’d rather have Google’s CDN:
This is a hack, so it will be gone every time you upgrade your ImpressCMS installation. It would be interesting to add this in a more generic way to the core in ImpressCMS 2.0. Have a look at ticket #603 on Assembla for that.