[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 15:42:29 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: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"49865" 49865]:
{{{
#!CommitTicketReference repository="" revision="49865"
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
Fixes #52098.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52098#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list