[wp-trac] [WordPress Trac] #37110: Update to jQuery 3.*

WordPress Trac noreply at wordpress.org
Fri Apr 24 06:18:55 UTC 2020


#37110: Update to jQuery 3.*
-------------------------------------------------+-------------------------
 Reporter:  jorbin                               |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  External Libraries                   |     Version:
 Severity:  critical                             |  Resolution:
 Keywords:  early has-patch needs-testing        |     Focuses:  javascript
  needs-dev-note needs-screenshots needs-        |
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by galbaras):

 We seem to be going around in circles, so perhaps we should first get a
 consensus on the direction, i.e. native JS or latest jQuery.

 Either way, that decision should then result in a huge push for plugin and
 theme authors to conform.

 Until the transition has ended, the default should be backward compatible,
 with core functions for letting WordPress know that jQuery is not required
 at all (perhaps via `add_theme_support( 'native-js' )` and/or a new
 `add_plugin_support( 'plugin-slug', 'native-js' )` function).

 Support for 'native-js' by the theme and all the registered plugins should
 cause WordPress to dequeue the old jQuery+Migrate (and remove them as
 dependencies?).

 Another option can be for 'jquery-3' support instead.

 If at least one theme/plugin supports 'jquery-3', while the rest support
 'native-js', WordPress should then dequeue the old jQuery+Migrate and
 enqueue the new ones instead (and replace the respective dependencies).

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


More information about the wp-trac mailing list