An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
June 4, 2020 12:17 am GMT
Original Link: https://www.impressivewebs.com/adding-css-to-a-page-via-http-headers/
Adding CSS to a Page via HTTP Headers
Only Firefox supports it, but if you return a request with a header like this:
Header add Link "<style.css;rel=stylesheet;media=all"
…that will link to that stylesheet without you having to do it in the HTML. Louis Lazaris digs into it:
[…] the only thing I can think of that could justify use for this in production is as a way to include some Firefox-only CSS, which Eric Meyer mentions as a possibility in an old post on this subject. But
…
The post appeared first on CSS-Tricks.
Original Link: https://www.impressivewebs.com/adding-css-to-a-page-via-http-headers/
Share this article:
Tweet
View Full Article