[wp-trac] [WordPress Trac] #58454: script-loader.php doesn't support font-display: optional, that is recommended for performance

WordPress Trac noreply at wordpress.org
Thu Jun 8 12:15:40 UTC 2023


#58454: script-loader.php doesn't support font-display: optional, that is
recommended for performance
---------------------------+------------------------------
 Reporter:  asafm7         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  performance
---------------------------+------------------------------

Comment (by asafm7):

 Thanks @merel1988 .

 While adding the preload might be a good enhancement, as you said, it
 might require further consideration. Anyway, this can be done with custom
 code.

 My intention, for now, was only to add the 'optional' as a valid value (so
 it won't be replaced by 'fallback' by the check). This currently can't be
 done without overriding core code.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58454#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list