Hacker News new | past | comments | ask | show | jobs | submit login

When your CSS file gets large. Which is the case in most sites today thanks to frameworks like Bootstrap. Your page will wait for the CSS file to download, process and repaint. Inlining some of the CSS i.e. critical path CSS can give you lighting fast renders.



Also don't forget to strip your unused classes, which I'm embarrassed to admit, I did not start doing until recently


Then you need bandwidth to download the CSS that is embedded in the page.

Where as you if you cache the linked CSS file you only take the hit once but as you navigate around the site each time it'll be loaded from the cache.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: