#1364 ✓resolved
dleffler

Feature request: support jQuery v3.x and better 'migrate' support

Reported by dleffler | May 23rd, 2016 @ 09:06 PM | in 2.5.0 (closed)

jQuery v3.x is on the verge of a final/stable release and we will want to include support at some point. This also begs some other new features:

  • auto-support for jQuery 'migrate' plugin if DEVELOPMENT turned on, where the development/non-minified version spits out console messages for deprecated/problem code where both the minified and production versions add features stripped out from the last major version upgrade
    • e.g., if you need really old 1.x features in 1.12 or 2.2, you need to use it, and initially make 3.x support some 2.x features, but not 1.x features
    • it WILL slow down the system, esp. with the debug output
  • auto-switch to non-minified 'migrate' plugin if DEVELOPMENT is turned on and system/user request it be loaded to support an OLD jQuery plugin
  • remove support or make optional support for OLD browsers...jQuery 3.x will never support old browsers, and v1.12 will be the last version to support very old browsers...we also load webshims to provide polyfills for older browsers...might be best implemented as a 'meta remove' flag in expTheme::head()?
    • webshims will not support jQuery v3.x

Comments and changes to this ticket

  • dleffler

    dleffler May 24th, 2016 @ 08:43 PM

    • Assigned user set to “expNinja”

    This may/will require revising some code. https://jquery.com/upgrade-guide/3.0

  • dleffler

    dleffler May 27th, 2016 @ 01:37 PM

    • Assigned user cleared.

    Note, it might be best to begin to update some of our javascript to become 3.x compliant, but wait to integrate 3.x (or leave it as an option) due to the number of external/custom scripts which may break as a result...

  • dleffler

    dleffler September 16th, 2017 @ 02:35 AM

    • Assigned user set to “dleffler”
    • Milestone set to 2.5.0

    recent push implements optional support for obsolete browsers (default is turned off). Therefore if OLD_BROWSER_SUPPORT is turned off we no longer load webshims or other browser hacks, and we load jQuery v3 instead of the v1/v2 hack based on browser version.

    We always load jQuery migrate v3.0.0 with jQuery v3 for compatibility at this point.

  • dleffler

    dleffler December 23rd, 2017 @ 04:20 PM

    As a note, we do NOT load both migrate 1.4.1 and migrate 3.0.x since they would conflict

  • dleffler

    dleffler October 23rd, 2018 @ 12:06 PM

    • State changed from “new” to “resolved”

    Has been implemented

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Pages