I've always been under the impression that it's better to load everything
from the get-go; as long as your file-sizes are reasonable. Any
non-essential JS can be loaded asynchronously and the important stuff
should be concatenated into a single file that is compressed and gzipped.
As for CSS, stylesheets aren't generally large enough to slow down load
times if they are likewise concatenated, compressed, and gzipped.

Can anyone elaborate further?


On Tue, Apr 8, 2014 at 6:44 PM, dev0x10 <[email protected]> wrote:

> I wonder how to load CSS and JS on demand or per partial? Because for now
> I load all the JS and CSS on the main HTML file.
> I found about lazy load CSS but is there any better way?
>
>
>  --
> 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.
>



-- 
*James Brewer*
*http://www.brwr.org/ <http://www.brwr.org/>*

*Software Engineer @ RealScout | What is RealScout?
<http://vimeo.com/72791570>*

*Twitter* *twitter.com/jamesbrwr <http://twitter.com/jamesbrwr>*
*GitHub* *github.com/brwr* <http://github.com/brwr>
*StackOverflow** stackoverflow.com/users/2052923/james-brewer
<http://stackoverflow.com/users/2052923/james-brewer>*
*LinkedIn* *linkedin.com/in/jamesbrwr <http://linkedin.com/in/jamesbrwr>*

→ *M**y favorite RealScout search is Modern & High-Tech Homes in Atherton
<https://kendeleon.realscout.com/categories/modern-high-tech?utf8=%E2%9C%93&loc=Atherton>*

-- 
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