Hacker News new | ask | show | jobs
by n3storm 416 days ago
Wordpress plugins and builders like Divi and Elementor has been inserting all css for every page part or component anywhere in the body for years. I hate it. But, thas this critical css means they have beeing doing it right all along?
1 comments

No, having an external file makes it cacheable locally. If every new page loads some of the same css again and again, it's a waste of bandwith. You should already have the stylesheet on your computer by then.
I often wonder if this bandwidth is as big a deal as people make it out to be.

On a very high traffic site, sure. Anything smaller and I’d argue you should just shove everything down the pipe in one request if you can.

If the bandwidth bothers you, delete an image. You likely don’t have anywhere near that amount in CSS to make up.

thank you.

anybody can tell me why I got two downvotes from my question?