[wp-trac] [WordPress Trac] #52098: Twenty Twenty-One: IE specific polyfills are loaded in all browsers

WordPress Trac noreply at wordpress.org
Tue Dec 22 16:17:50 UTC 2020


#52098: Twenty Twenty-One: IE specific polyfills are loaded in all browsers
-----------------------------+--------------------------------------
 Reporter:  ismail.elkorchi  |       Owner:  desrosj
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  5.6.1
Component:  Bundled Theme    |     Version:  5.6
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:  javascript, performance
-----------------------------+--------------------------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"49868" 49868]:
 {{{
 #!CommitTicketReference repository="" revision="49868"
 Twenty Twenty-One: Only load IE specific polyfills when actually using
 Internet Exploreer.

 The `twenty-twenty-one-ie11-polyfills` script now has a `null` source, and
 the new `twenty-twenty-one-ie11-polyfills-asset` (which points to the
 actual `polyfills.js` source) will be loaded only if IE is detected by
 through the use of `wp_get_script_polyfill()`.

 Because the original script name remains the same, this change is
 backwards compatible with any code registering `twenty-twenty-one-
 id11-polyfills` as a script dependency.

 Props poena, ismail.elkorchi, peterwilsoncc.
 Merges [49865] to the 5.6 branch.
 Fixes #52098.
 }}}

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


More information about the wp-trac mailing list