Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why place all of your Javascript code in one file?

Why place all of your Javascript code in one file? Is it possible and is it make sense to split into smaller logical file units?

like image 759
StreamT Avatar asked Nov 24 '09 06:11

StreamT


1 Answers

With only one JS file you would get less HTTP header overhead. In regards to web development: you have to fit your target audience. Web traffic is expensive, so you must minimize the web traffic and maximize the message.

like image 103
monksy Avatar answered Nov 07 '22 10:11

monksy