Hi Andrej,

Perhaps this library can be of assistance to 
you: https://github.com/ocombe/ocLazyLoad
For myself, I prefer to include everything I (might) need during build 
time. As long as http 2.x is not widely supported, loading lots of small 
parts is adding overhead in stead of reducing it.
My opinion? As long as your concatenated, minified and gzipped code is 
under the 250Kb (That is a LOT of code!) there is no real reason for 
dynamic loading.
If you have security issues, just build different versions (leaving out the 
offending code) for different security levels and let the server send the 
version the user is allowed to use.


Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to