Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript AngularJS Basics (1.x) Getting Started with Angular What Is Angular and How Does It Work?

What will be the load time in the initial stages?

So as the instructor mentioned Angular will load the static files in the beginning and then make additional requests for data via ajax? But will the initial load time be higher if it has to load all the static files in beginning? So will the traditional websites be loading files when the user makes a new request instead of data? Can anyone clarify a little bit about the though process!

Thanks

1 Answer

Andrew Kiernan
Andrew Kiernan
26,892 Points

Hi Vamsi,

Yes, initial load times in client-side apps are on average higher than traditional client/server apps because all of the templates and scripts for them are loaded up front. The trade-off for this approach is traditionally that moving between pages is smoother/faster because there are no page refreshes, as the templates are all client-side, eliminating extra calls to the server, except for additional data.

Hope that helps!

-Andrew

So we should go for this single page apps, when we have a clear idea that the client is going to stay much longer in our app. So if the website usage is just get to some info, I think we should not ahead of SAP? Am I correct?