开发者

Reason to use older versions of jQuery? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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

To me I thought the answer was obviously to update to the newest jQuery, but there must be reaso开发者_开发问答ns why most of the responses don't say that.

EDIT: I understand being....say one version behind, especially when a new version just came out.. but being more than say... 3 versions behind? I don't see how the effort of making something work in the newer version would be more than making future things work with the older version.


Thanks!


Newer versions often new ways of doing the same thing and infrequently but do break backward compatibility.

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

Also, if there are other third party plugins that rely on a older version, then until they upgrade, you can't.


The same reason many corporate intranets still run ie6, there are legacy systems that treat "bugs" as "features" and would have to rewrite and debug code that already works on the older version...


if it's not broken, don't change it :))


Depends on the situation. If you're managing a large application that uses jQuery 1.2.6 or something old (like 1.3.2), it may not be easy to keep up with deploying new versions of the application with updated jQuery libraries. You'll have to keep up on breaking changes (like the changes b/w 1.5 and 1.6 with the data and attr changes). If your app uses jQuery extensively, that could be a lot of testing for your testers (if you're lucky enough to have testers). :)

Plus, if you're using plug-ins, you're not guaranteed that they're going to be compatible with the newer versions.

There are a lot of reasons why people are still on older versions. I'm sure others will post other reasons.


There is nothing harm in always upgrading to latest JQuery that is realeased unless you dont want to change your legacy code in case some of the features in the old version are depricated.


The only time I've ever had to use an old version of jQuery, was when a jQuery plugin I was using broke due to changes in the new release. Normally most plugin's do a good job working with the latest and greatest, but there was some big changes between 1.3 -> 1.4 -> 1.5 that had a few of my plugins down for a few weeks.


New versions of JQuery sometimes don't keep backward compatibility.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜