[wp-trac] [WordPress Trac] #37317: Change priority of `wp_resource_hints()` to print them earlier
WordPress Trac
noreply at wordpress.org
Sun Jul 10 09:23:13 UTC 2016
#37317: Change priority of `wp_resource_hints()` to print them earlier
-------------------------------------+--------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: performance
-------------------------------------+--------------------------
Changes (by peterwilsoncc):
* keywords: has-patch => has-patch needs-refresh
Comment:
In [attachment:37317.2.diff] customizer outputs the hints twice, above
DOCTYPE declaration.
Additional thoughts
* On `wp_head` setting the priority to `2` seems a surer way of ensuring
it follows the enqueue action.
* Using `1000` as a magic number for `admin_enqueue_scripts` doesn't
thrill me, a low number on `admin_print_scripts` seems more likely to get
the desired result.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37317#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list