3 ms·
Sorry, that was actually my error. I had meant to say embedded CSS (as in a <style> tag), not inline (as in style=""). I find this approach is a lot messier t
by SquareWheel 10y ago
Sorry, that was actually my error. I had meant to say embedded CSS (as in a <style> tag), not inline (as in style="").
I find this approach is a lot messier than having an external sheet as it means splitting up "essential" and non-essential CSS, and it creates duplicate code. The CSS and HTML become more inter-dependent and less cacheable as a result.
It would be very cool to see a technology emerge that allowed CSS files to be sent in parts. The server might know which pages require which sections of code and prioritize those. The rest could be sent after everything else has loaded for future pages, or some sort of AJAX interaction. Mostly just thinking out loud, but it seems like there's better solutions to this one.