[wp-trac] [WordPress Trac] #37317: Change priority of `wp_resource_hints()` to print them earlier

WordPress Trac noreply at wordpress.org
Sat Jul 9 12:28:56 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        |   Keywords:  needs-patch
  Focuses:  performance   |
--------------------------+-------------------------
 As noted in https://wordpress.org/support/topic/ordering-of-dns-prefetch-
 preconnect?replies=2, the resource hints should be printed '''before'''
 scripts and styles are returned.

 The current priority is 10 for `wp_head` and for the admin we're using
 `admin_head` which runs after `admin_print_scripts`. We can lower the
 priority to 1 for the front end and should change the admin hook  to
 `admin_print_styles`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37317>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list