[wp-trac] [WordPress Trac] #52465: Allow a relation type in resource hints to be used multiple times

WordPress Trac noreply at wordpress.org
Fri Apr 30 20:50:48 UTC 2021


#52465: Allow a relation type in resource hints to be used multiple times
---------------------------+------------------------------
 Reporter:  GeekPress      |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by tabrisrp):

 * keywords:  has-patch has-unit-tests =>


Comment:

 I added a PR on Github for this enhancement.

 It takes a different approach because the proposed patch was causing
 existing unit tests to fail.

 I focused on the crossorigin compatibility, as it seems it's the only
 attribute for which we really want the possibility to have multiple
 entries for the same URL.

 Added an additional test case to validate the change, and the existing
 tests still pass too.

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


More information about the wp-trac mailing list