Re:The Right Stuff: Breaking the PageSpeed Barrier with Boot...
by mtrpcic on Wednesday December 18, 2013 @01:05PM
(#6929223)
I agree with this. By inlining all the JS and CSS, you lose the entire benefit of the browser cache, making each HTTP request for a real page a lot larger.
[ Parent
| on HN ]
Re:The Right Stuff: Breaking the PageSpeed Barrier with Boot...
by at-fates-hands on Wednesday December 18, 2013 @04:29PM
(#6930929)
Unless you're using snippets or partial views where you can load only what's needed (in terms of JS and CSS) on a given page.
In that instance, I can see an advantage for inlining it, but it sure doesn't make for attractive code. Priorities though - right?
Re:The Right Stuff: Breaking the PageSpeed Barrier with Boot...
by untog on Wednesday December 18, 2013 @07:13PM
(#6932000)
Even then, unless your partial views are barely ever repeated in different pages it still isn't worth it. And if they're barely ever repeated then there isn't much point in them being partial views.