Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How well does jQuery support backward compatibility?

We have had issues with Mootools not being very backward compatible specifically in the area of drag and drop functionality. I was wondering if anyone has had any similar problems with jQuery not being backward compatible. We are starting to use it quite heavily and are thinking about upgrading to a newer version to start using several plugins that require it. Will we have any issues if we get rid of the older version?

like image 690
Josh Mein Avatar asked Nov 11 '08 16:11

Josh Mein


People also ask

Is JavaScript backward compatible with old browsers?

JavaScript Learn JavaScript Quick Course BeginnersHTML5 is designed, as much as possible, to be backward compatible with existing web browsers. New features build on existing features and allow you to provide fallback content for older browsers.

Is ES6 backwards compatible?

See the WIKI definition of backwards compatibility: en.wikipedia.org/wiki/Backward_compatibility ES6 is completely backwards compatible i.e. any ES5 program runs on ES6 as it is a superset of ES5 (AFAIK).


2 Answers

jQuery seems to be nicely backward compatible. I have been using it for more than a couple of years now through several versions of the core and have not had issues when upgrading except a few minor ones with some plugins. I would say that the core seems to be fine but if you're using a lot of plugins you might run into some problems (but these are usually easy to fix, or the new core has that functionality built in anyway so you can just drop them).

like image 157
Lindsay Avatar answered Sep 18 '22 11:09

Lindsay


jQuery is so serious about backwards compatibility that they produce a "backwards compatibility" plugin for each release: http://docs.jquery.com/Release:jQuery_1.2#jQuery_1.1_Compatibility_Plugin. It let people who don't need backwards compatibility save on page weight.

like image 39
FriendOfFuture Avatar answered Sep 19 '22 11:09

FriendOfFuture