[Webkit-unassigned] [Bug 39455] <link> elements with media queries that do not affect the current page can be delayed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 27 14:37:55 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=39455

--- Comment #8 from Vadim Makeev <pepelsbey at gmail.com> ---
Here’s another reason for this behavior to be aligned with the rest of the browsers.

There’s a popular technique of CSS lazy loading introduced in Filament Group blog in 2019 https://www.filamentgroup.com/lab/load-css-simpler/

<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'">

I see it used and mentioned here and there as one of the best and simplest option. The article states:

> …the browser will load the stylesheet without delaying page rendering, asynchronously

Which is not the case for Safari: it will be Render-blocking. No one seems to expect such incompatible behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221127/7166a18d/attachment.htm>


More information about the webkit-unassigned mailing list