Bug 248724 - Safari does not take into account the "media" attribute in the <link> tag to prioritize the loading of connected CSS files
Summary: Safari does not take into account the "media" attribute in the <link> tag to ...
Status: RESOLVED DUPLICATE of bug 39455
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 16
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-03 16:38 PST by Karen Key
Modified: 2022-12-04 18:08 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Key 2022-12-03 16:38:40 PST
Safari does not take into account the "media" attribute in the <link> tag to prioritize the loading of CSS files. All browsers based on based Chromium and Firefox do this correctly.

The browser should respect the "media" attribute and give more priority to files associated with the current @media conditions. And also do not wait for unnecessary files and do not delay rendering while they are loading.

This behavior is also described and encouraged in this MDN article: 
https://developer.mozilla.org/en-US/docs/Learn/Performance/CSS
And here:
https://nednex.com/en/split-your-css-to-media-related-files-to-improve-performance-significantly/

Thank you so much for your invaluable work, I hope this important optimization will be in WebKit as soon as possible.
Comment 1 Alexey Proskuryakov 2022-12-04 18:08:41 PST

*** This bug has been marked as a duplicate of bug 39455 ***