[wp-trac] [WordPress Trac] #42438: Add support for preload links (similar to resource hints)
WordPress Trac
noreply at wordpress.org
Wed Jul 6 00:03:07 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 peterwilsoncc):
I think using the existing code in `wp_resource_hints` would be better.
The pros of using a separate function is that it is semantically correct.
The cons are that it duplicates a near identical API; it's not possible to
coordinate between preload and hinting to avoid double ups.
If anyone feels strongly enough that there is a better name that can
encompass both hinting and instructing the browser, the the existing name
can be deprecated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42438#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list