[wp-trac] [WordPress Trac] #42438: Add support for preload links (similar to resource hints)

WordPress Trac noreply at wordpress.org
Mon May 9 07:45:38 UTC 2022


#42438: Add support for preload links (similar to resource hints)
----------------------------------------+-----------------------------
 Reporter:  nico23                      |       Owner:  swissspidy
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  Future Release
Component:  Script Loader               |     Version:  4.9
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------------

Comment (by aristath):

 While exploring ways to improve performance for block themes in Core I
 came across this ticket again.
 Block themes currently parse the content before the `<head>`, and then
 load a separate CSS file for each block-type that exists on a page. These
 files are tiny and most times get inlined, but not always (there's a
 filterable default maximum of 20kb for inlined styles).
 When a block-style does not get inlined, we should make these styles
 available to the browser as soon as possible to prevent render-blocking.
 In order to do that, we need to allow `preload` and apply it to the core
 block stylesheets.

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


More information about the wp-trac mailing list