view - AngularJS - does everything need to loaded on initial page load? -


i diving javascript mvc angular , understand it, along initial shell page, scripts must loaded on initial page load. however, , correct me if i'm wrong, mean majority of scripts being loaded entirely useless (i.e. have view #1 showing , scripts views #2 - #10 aren't needed yet)?

in case, have large web app, feed page, results page, product page, profile page, among others. amounts 10+ pages, , current (the traditional) approach loading scripts specific each page on load. each page partial , don't believe it's possible load specific scripts partials?

so, part of question if statements accurate. other whether or not fear of suffering on initial page load justified (especially mobile devices instance).

i got angular in hopes clean javascript mvc approach , did not plan on taking advantage of single page application (i can forego use of routing different partials view, right?). i'm not sure. want better understanding of how works before making leap.

any appreciated. thanks!

take amd pattern require.js (works type of js framework). there seed project angularjs + requirejs.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -