I have developed an application using backbone.js So I have created multiple models and multiple views. Initially I created them in one file but after some further reading, I came to know it is advisable to keep models separate, views separate and all routers separate. I just want to know, if we do this We will be increasing the number of HTTP Get requests (one for each javascript file) So this practice leads to some extra cost.
Q. How can we reduce this cost ?
Take a look at require.js
http://requirejs.org/
and this tutorial
http://backbonetutorials.com/organizing-backbone-using-modules/