An Interest In:
Web News this Week
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
December 25, 2020 09:28 pm GMT
Original Link: https://css-tricks.com/responsible-conditional-loading/
Responsible, Conditional Loading
Over on the Polyplane blog (there’s no byline but presumably it’s Kilian Valkhof), there is a great article, Creating websites with prefers-reduced-data, about the prefers-reduced-data
media query. No browser support yet, but eventually you can use it in CSS to make choices that reduce data usage. From the article, perhaps you only load web fonts if the user hasn’t indicated a prefernce for low data usage:
@media (prefers-reduced-data: no-preference) { @font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap;
… Read article “Responsible, Conditional Loading”
The post Responsible, Conditional Loading appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://css-tricks.com/responsible-conditional-loading/
Share this article:
Tweet
View Full Article