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

WordPress Trac noreply at wordpress.org
Fri Jul 29 22:17:23 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
Changes (by adamsilverstein):

 * keywords:  has-unit-tests has-patch => has-unit-tests has-patch commit
 * type:  defect (bug) => enhancement


 [attachment:"42438.2.diff"] includes all of the updates from the PR.

 Marking this for commit (as an enhancement) given the approvals on the PR,
 this is in a good state.

 We should follow up with:
 * core usage where we can
 * further cleanup/DRYing out of similar `wp_resource_hints` function
 * adding a more declarative API as suggested by @swissspidy

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

More information about the wp-trac mailing list