3 ms·
For an average static website, we are likely to have the number of HTML pages much greater than the number of CSS files. So, it is far more likely to have a com
by vivegi 4y ago
For an average static website, we are likely to have the number of HTML pages much greater than the number of CSS files. So, it is far more likely to have a common set of styles coded in a separate CSS file be practically more efficient than inlining the styles.
Add to this, the caching of the CSS file upon the first HTML file's use by the browser makes any css inlining in the HTML not worthwhile. The caching would save a lot more bandwidth each time the HTML files are accessed (by the same browser).
This combined with HTTP compression is far superior to any inlined HTML+CSS.