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

WordPress Trac noreply at wordpress.org
Tue Jun 14 14:43:04 UTC 2022


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

Comment (by swissspidy):

 Are we confident the current API is intuitive enough and can be used to
 solve typical use cases? Having to use a filter to add a preload link vs.
 an imperative way (e.g. a `wp_add_preload_link()` function or so) is
 arguably not the best developer experience. It’s one of the things I am
 not super proud of from when I helped with the resource hints feature.

 Already asked 4 years ago: what in WordPress core today would benefit from
 preload links? We should have some good use cases in core (or bundled
 themes) prior to adding this. There should be some examples that proof
 that the proposed API can solve these use cases.

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


More information about the wp-trac mailing list