HTML spec quirk: stylesheets in <head> block rendering, ones in <body> don't

steren · x · 2026-10-12

A lesser-known HTML spec detail shared by steren: only stylesheets in the <head> are treated as render-blocking. A stylesheet placed in the <body> doesn't block painting of the content that comes before it—a simple, often-overlooked page performance trick.

Original post →

More from coding & agent

coding & agent channel →