<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>248724</bug_id>
          
          <creation_ts>2022-12-03 16:38:40 -0800</creation_ts>
          <short_desc>Safari does not take into account the &quot;media&quot; attribute in the &lt;link&gt; tag to prioritize the loading of connected CSS files</short_desc>
          <delta_ts>2022-12-04 18:08:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari 16</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>39455</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karen Key">jkqmccihgnrwfo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1916520</commentid>
    <comment_count>0</comment_count>
    <who name="Karen Key">jkqmccihgnrwfo</who>
    <bug_when>2022-12-03 16:38:40 -0800</bug_when>
    <thetext>Safari does not take into account the &quot;media&quot; attribute in the &lt;link&gt; tag to prioritize the loading of CSS files. All browsers based on based Chromium and Firefox do this correctly.

The browser should respect the &quot;media&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916622</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-12-04 18:08:41 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 39455 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>