by clusterfu_k · 16y ago · 0 comments
I understand why loading the page would be faster if it was all in one file. Also, I realise that this would not allow for the dynamic page to be cached properly for future use, but I have tested and the effects of the lack of caching are minimal.
So the question is what are the downsides of doing it this way?
The downside is it makes each page bigger. If isn't a real small javascript file, you are adding all those bytes to each request. In this case, it would require more bandwidth to transfer the entire page at the same speed.