[wp-trac] [WordPress Trac] #38121: Crossorigin and other attributes for wp_resource_hints

WordPress Trac noreply at wordpress.org
Sun Sep 25 19:33:23 UTC 2016


#38121: Crossorigin and other attributes for wp_resource_hints
---------------------------+------------------------------
 Reporter:  superpoincare  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  4.6
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  performance
---------------------------+------------------------------

Comment (by swissspidy):

 Attributes have come up before, but we didn't really have time to consider
 all of them, especially since the specification is still in draft status.

 There's the hint probability (`pr`) attribute (https://www.w3.org/TR
 /resource-hints/#attributes) as well as the `as` attribute. `crossorigin`
 can also have a value, e.g. `crossorigin="use-credentials"`, see
 https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-
 attributes.

 Also, we might want to support `preload` as well.

 Of course, this all would need to be done in a backward compatible way.

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


More information about the wp-trac mailing list