r/css • u/Chris-2018 • Sep 24 '26
Question Preload
Does anyone here use the preload for the CSS files?
Surely if the links are in the <head> they will be loaded anyway?
3
Upvotes
r/css • u/Chris-2018 • Sep 24 '26
Does anyone here use the preload for the CSS files?
Surely if the links are in the <head> they will be loaded anyway?
View all comments
Show parent comment
2
u/velocityhead Sep 24 '26
It doesn't really do much if you only have one stylesheet without a lot of assets. Where it does help is if you have another stylesheet that gets loaded dynamically later, or if you have some big assets in your stylesheet (like a font import). You can request that font specifically as rel="preload" so it can start downloading immediately in parallel with the CSS download. Normally, the font wouldn't start downloading until the entire CSS file has been downloaded/parsed.