Ok lets test the age old theory that having multiple HTTP requests to get Javascript is adverse to loading times. Obviously it is better to download a single file over multiple files however what I’m wondering is, how much better? Are we killing ourselves trying to reduce HTTP requests when there is no benefit or are we saving the world from certain destruction? Lets have a go shall we?

1 vs 2 JS files

Load 1 concatenated JS file or 2 single ones

1 vs 5 JS files

Load 1 concatenated JS file or 5 single ones

1 vs 10 JS files

Load 1 concatenated JS file or 10 single ones

Comments