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

WordPress Trac noreply at wordpress.org
Tue Aug 2 12:26:57 UTC 2022


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

Comment (by mihai2u):

 The most common scenario for preloading is for render-blocking resources
 which might appear after the first HTML network packet, as that's the
 moment when there is more network bandwidth available.

 For example, jquery-core-js and jquery-migrate-js are two render-blocking
 resources (always in the admin) that could appear after many inline styles
 and are prime examples of preloading that can move the network download
 earlier in the timeline due to the certainty of them being required.

 Preload directives should not be used for non-render-blocking elements, as
 then they would compete with the render-blocking ones slowing down the
 render.

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


More information about the wp-trac mailing list