[wp-trac] [WordPress Trac] #52098: Twenty Twenty-One: IE specific polyfills are loaded in all browsers
WordPress Trac
noreply at wordpress.org
Wed Dec 16 22:41:39 UTC 2020
#52098: Twenty Twenty-One: IE specific polyfills are loaded in all browsers
-----------------------------+--------------------------------------
Reporter: ismail.elkorchi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript, performance
-----------------------------+--------------------------------------
Changes (by peterwilsoncc):
* keywords: => needs-patch
* version: trunk => 5.6
Comment:
Thanks for the report @ismailelkorchi
I think you're correct, ideally the polyfill would be included for IE11
only but I'll leave the 2021 team to decide whether to milestone this
ticket as it may have been discussed earlier.
Unfortunately the `$is_IE` variable is unreliable for sites with full page
caching but the `wp_get_script_polyfill()` function can be used when
enqueuing the script similar to how WordPress uses it in the dashboard for
`wp-polyfills`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52098#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list