Reason for using older jQuery versions?

I just read this question about how to fix something in jQuery 1.2.6 and don’t understand why people will use older versions of jQuery? What are the benefits / reasons?

It seemed to me that the answer obviously should have been updated to the latest jQuery, but there should be reasons why most of the answers do not talk about it.

EDIT: I understand that I ... say one version behind, especially when the new version appeared ... but more than say ... 3 versions behind? I don’t see how an attempt to force something to work in a newer version will be more than in the future to work with an older version.


Thanks!

+6
source share
7 answers

In newer versions, new ways often appear to do the same thing and infrequently, but they violate backward compatibility.

Sometimes the sheer effort of regression testing (after updating) your site can be a deterrent.

In addition, if there are other third-party plugins that rely on an older version, then until they are updated, you will not be able to.

+9
source

For the same reason that many corporate intranets are still running ie6, legacy systems exist that treat "errors" as "functions" and will need to rewrite and debug code that already works in the older version ...

+5
source

Depends on the situation. If you are running a large application using jQuery 1.2.6 or something old (e.g. 1.3.2), it may not be easy to keep up with the deployment of new versions of the application with updated jQuery libraries. You will have to keep up with the changes (for example, changes to b / w 1.5 and 1.6 with changes to data and attr ). If your application makes extensive use of jQuery, this can be a lot of testing for your testers (if you're lucky to have testers). :)

In addition, if you use plugins, you are not guaranteed that they will be compatible with newer versions.

There are many reasons why people are still in older versions. I am sure that others will post other reasons.

+2
source

There is no harm in the fact that you always update the latest jQuery, which is updated if you do not want to change the obsolete code, if some of the functions of the old version are deprived.

+1
source

if it is not broken, do not change it :))

+1
source

The only time I had to use the old version of jQuery was that the jQuery plugin that I used crashed due to changes in the new version. Typically, most plugins work well with the latest and largest, but between 1.3 → 1.4 → 1.5 there have been big changes that have had several of my plugins for several weeks.

+1
source

Newer versions of jQuery sometimes do not support backward compatibility.

0
source

Source: https://habr.com/ru/post/893375/


All Articles