Re:Ask HN: Include JavaScript via PHP or HTML?
by clusterfu_k on Thursday March 11, 2010 @12:00AM
(#1183035)
if the time it takes to download the slightly page is less than the time it takes for the second request for a separate js file on average (including when cached), then i would be in the clear?
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.