Hacker News new | ask | show | jobs
by mtrpcic 4573 days ago
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.
1 comments

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?

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.