Slashdot Mirror


jQuery 2.0 Will Drop Support For IE 6, 7, 8

benfrog writes "The developers of jQuery recently announced in a blog entry that jQuery 2.0 will drop support for legacy versions of Internet Explorer. The release will come in parallel with version 1.9, however, which will include support for older versions of IE. The versions will offer full API compatibility, but 2.0 will 'benefit from a faster implementation that doesn't have to rely on legacy compatibility hacks.'"

15 of 250 comments (clear)

  1. Like by Krojack · · Score: 4, Insightful

    I like this however I'm guessing anyone that starts using this will have a boat load of complains thus 2.0 won't be used for several years. Sadly. Damn IE slowing down even non-IE users!

    1. Re:Like by Kate6 · · Score: 5, Informative

      You see the bit where it says "full API compatibility"? That means with a few lines of PHP (or some equivalent back-end language) you can have a look at the user's browser USERAGENT string, figure out if it's an MSIE browser or not and serve the preferable version of jQuery... 1.9 for legacy IE, 2.0 for IE9 and for standards compliant browsers. And the "full API compatibility" means the rest of your code will play nice with either.

    2. Re:Like by dingen · · Score: 4, Informative

      But .delegate(), .on() and .live() all still work with recent versions of jQuery, so your old code still runs with newer versions of the library. New features being introduced is not bad. The pain starts when old features are dropped.

      --
      Pretty good is actually pretty bad.
    3. Re:Like by madprof · · Score: 4, Insightful

      Holy moley. I might be saying what others say but please, for the love of everything good, use conditional comments.
      They've been around since IE5. You will love them.

    4. Re:Like by Art3x · · Score: 4, Informative

      with a few lines of PHP (or some equivalent back-end language) you can have a look at the user's browser USERAGENT string, figure out if it's an MSIE browser or not and serve the preferable version of jQuery... 1.9 for legacy IE, 2.0 for IE9 and for standards compliant browsers.

      Or do it with HTML comments (this actually works):

      <!--[if lt IE 9]>
      <script src="jquery-1.9.0.js"></script>
      <![endif]-->
      <!--[if gte IE 9]><!-->
      <script src="jquery-2.0.0.js"><</script>
      <!--<![endif]-->

      Less code. Also you've offloaded the CPU processing from your server to the user's browser.

      This was in the article by the way. . . . Oh . . . nevermind.

    5. Re:Like by jmerlin · · Score: 4, Informative

      User Agent hacks are incompatible with caching. Bad idea. Use conditional comments so IE gets its familiar old diaper and every other browser gets a shiny new car. Either that or propose an If-User-Agent header so proxies and caches can figure out whether your request is the same as a previous one.

  2. Missing the point by bobetov · · Score: 4, Informative

    All, one of the big reasons for this move is to provide a cleaner, smaller, faster version of jQuery to apps dedicated to a given platform, such as iOS apps running as HTML5 shells. These applications know their "browser" environment, and thus can benefit from lack of IE support with no cost in terms of audience size.

    No one who has a general-public website should use 2.0 for years to come, but if you're developing a quickie Android app, or one of the dozen or so javascript-based desktop shells, etc, then this move is for you.

    --
    Looking for a Rails developer in Chapel Hill?
  3. IE6 and 7? by Anonymous Coward · · Score: 5, Insightful

    Find, finally kill the bastards. But 8?! This is the last IE available for XP, which is still widely used in companys....

  4. Re:IE Version Code Breakdown? by tobiasly · · Score: 5, Informative

    Does anyone here have enough knowledge of the JQuery codebase to say how the IE-specific cruft breaks down by version?

    IE6 is a monstrosity; that's pretty much a given, and IE7 isn't great either. I could see dropping support for both of those being a big win in terms of cleaning up the codebase. That said, how much do they gain by dropping IE8 as well? It was only released 3 years ago.

    The "promoted reader comment" in the linked Ars article actually answers exactly that:

    Drizzt321 wrote:
    Wow, removing support for IE8? That's a really bold move. I can see IE6 & 7, those are rather old and should be deprecated and people should be really encouraged to move to newer versions.

    John Resig has said in interviews that most of the IE6 and IE7 code is needed for IE8 as well. While IE8 has far better layout and CSS engine evidently it still has pretty bad DOM API. Resig pointed out that dropping support for IE6 and IE7 would have very little impact on the size and complexity of the library unless they drop IE8 as well

  5. IE8 = "latest" version for many by tverbeek · · Score: 5, Insightful

    I can see dropping IE6 & IE7, because there's no sound reason for anyone to still be using them. But IE8 is the terminal version of IE for Windows XP, which remains one of the most widely-used operating systems on the planet. It's not going to go away just because someone doesn't want to support it any more.

    --
    http://alternatives.rzero.com/
    1. Re:IE8 = "latest" version for many by dingen · · Score: 5, Interesting

      The problem is that IE8 handles Javascript in much the same non-standard way als IE6 & IE7. If a library such as jQuery includes support for IE8, it's supporting IE6 & IE7 as well.

      --
      Pretty good is actually pretty bad.
    2. Re:IE8 = "latest" version for many by cyber-vandal · · Score: 4, Informative

      You can use conditional comments to load the older version of JQuery for IE6, 7 and 8 so it's not as bad as it seems. Web designers have been doing this for years to hack around Microsoft's incompetence,

    3. Re:IE8 = "latest" version for many by jellomizer · · Score: 4, Informative

      However my organization just Upgraded to IE 8.

      There isn't any plan to be going to 9 in the near future as there are too apps that have issues with following Open Standards.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    4. Re:IE8 = "latest" version for many by TheCycoONE · · Score: 4, Informative

      The first part of your comment is true, 10 is dropping them. The second part isn't - conditional comments can be written either to exclude or include all browsers that don't support them (with comment syntax or tag syntax). When using comment syntax IE6-9 can execute a piece of code that all other browsers see as a comment.

  6. Re:IE Version Code Breakdown? by kawika · · Score: 4, Informative

    As far as bugs and quirks go, a lot of the ones in IE6 and IE7 are also present in IE8. In specific, things like eating HTML5 tags, the lack of true opacity support and the proprietary IE event model that used attachEvent instead of addEventListener. There's quite a bit of code in jQuery to deal with IE event issues, for example the lack of a bubbling change event. IE8 managed to plug some memory leaks and wasn't as bizarre with the "attroperties" issue as IE7 was, but they still have a lot of sins in common.