[wp-trac] [WordPress Trac] #37385: Resource hinting: only dns-prefetch enqueued resources.

WordPress Trac noreply at wordpress.org
Tue Jul 19 02:34:44 UTC 2016


#37385: Resource hinting: only dns-prefetch enqueued resources.
---------------------------+----------------------------
 Reporter:  peterwilsoncc  |       Owner:  peterwilsoncc
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.6
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:  commit         |     Focuses:
---------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38100"]:
 {{{
 #!CommitTicketReference repository="" revision="38100"
 Script Loader: Limit resource hinting to enqueued assets.

 Externally hosted script and style dependencies trigger `dns-prefetch`
 hinting only when enqueued. This removed a bug in which hinting was added
 on registration.

 Renames the function `wp_resource_hints_scripts_styles` to
 `wp_dependencies_unique_hosts` as the function provides the hosts, not the
 hinting.

 Props swissspidy.
 Fixes #37385.
 }}}

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


More information about the wp-trac mailing list