[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:33:29 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:  has-patch      |     Focuses:  performance
---------------------------+------------------------------

Comment (by merel1988):

 Hi @asafm7,

 I just made a PR for that.

 Replying to [comment:3 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 with 'fallback' by the check). This currently
 can't be done without overriding core code.

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


More information about the wp-trac mailing list