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

WordPress Trac noreply at wordpress.org
Wed Jul 13 22:37:50 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-unit-tests  |     Focuses:
----------------------------+-------------------------

Comment (by azaozz):

 Rereading the older comments, couple more suggestions:
 - Rename `wp_preload_links()` to `wp_preload_resources()`. It outputs link
 tags (same as `wp_resource_hints()`) but the actual functionality is to
 preload resources.
 - Open another ticket to update `wp_resource_hints()` as described in
 [#comment:3 comment 3] and fix/enhance the var names.

 Also seems better to keep these two separate.

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


More information about the wp-trac mailing list