[wp-trac] [WordPress Trac] #55126: Twenty Sixteen: Replace frontend jQuery usage with vanilla JS
WordPress Trac
noreply at wordpress.org
Wed Feb 9 17:31:47 UTC 2022
#55126: Twenty Sixteen: Replace frontend jQuery usage with vanilla JS
---------------------------+------------------------------
Reporter: sergiomdgomes | Owner: sergiomdgomes
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+------------------------------
Comment (by sergiomdgomes):
An alternative approach to preserving IE 11 compatibility is to use a
`wp_get_script_polyfill`-based approach [https://github.com/WordPress
/wordpress-develop/blob/6192591757bb1237be0d234943399bcc88e44a6f/src/wp-
content/themes/twentytwentyone/functions.php#L439-L447 / like Twenty
Twenty One does].
This would keep the code clean and would prevent polyfills / helper
functions from being loaded in modern browsers, but the downside would be
that it would require bumping up compatibility to WordPress 5.0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55126#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list