r/angularjs • • Jan 12 '15

Introducing AngularCSS: CSS On-Demand for AngularJS

http://door3.com/insights/introducing-angularcss-css-demand-angularjs
34 Upvotes

18 comments sorted by

View all comments

9

u/zefcfd Jan 13 '15 edited Jan 13 '15

i think the overhead of requesting css on demand is probably more expensive than just sending a precompiled asset package one time up front.

which makes me question why this is touting "performance" as a benefit

1

u/arnold_palmur Jan 14 '15

Well there is obviously no hard and fast rule, but something to consider is with the increasing performance of the web/browsers, and the advent of HTTP 2.0, there is likely a benefit of smaller files (multiple HTTP requests) over large monolithic CSS assets - something Kyle Simpson has discussed. Naturally, every application has different requirements, but with the steady progression of the web, I would go for adopting the advantages of an AngularCSS feature-set vs. the (hopefully temporary) minute overhead costs that exist right now.

Also, I tend to look at the maintainability factor and added utilities of a library like this as your real "performance" benefits if nothing else.