jQuery 2.0 Will Drop Support For IE 6, 7, 8 250
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.'"
Like (Score:5, Insightful)
So it's like Python 3 (Score:4, Insightful)
IE6 and 7? (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....
IE8 = "latest" version for many (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.
This won't really affect anything. (Score:2, Insightful)
All you need is some back-end code to examine the user's browser's "useragent" string and figure out which version of jQuery to serve.
<?php
preg_match( '/MSIE ([0-9\.]+)/', $_SERVER[ 'HTTP_USER_AGENT' ], $matches );
if ( ( count( $matches ) == 2 ) && ( floatval( $matches[ 1 ] ) < 9.0 ) )
echo "<script type='text/javascript' src='jQuery-1.9.min.js'></script>";
else
echo "<script type='text/javascript' src='jQuery-2.0.min.js'></script>";
?>
Re:Like (Score:5, 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.
Re:IE8 = "latest" version for many (Score:2, Insightful)
There are already issues with Jquery and IE 6 and 7. Take fore example, slideUp and slideDown functions will throw your content aimlessly across the screen (certainly in 6, not sure about 7). Show and hide don't work well either when you're dealing with timing events. 8 has always been my bear minimum standard for Jquery.
Here's the thing though: IE 8 will go away... if every website in the world stopped supporting it. How many millions of sites use Jquery-latest from google?
Re:Like (Score:4, Insightful)
If you look at a set of the available conditional comments in an editor with proper syntax highlighting, it'll become obvious immediately how they work: everything that is targeted at IE (or specific versions thereof) is technically inside an HTML comment and ignored by other browsers; IE parses these comments and, in the presence of conditional directives it determines (by version) whether to treat them as if outside an HTML comment. Everything that targets non-IE browsers is outside of a comment, but IE will treat it as a comment.
This is a comment, unless loaded in IE versions 8 and below:
<!--[if lte IE 8]><script src="/path/to/jquery19.js"><![endif]-->
This is a comment, unless loaded in IE versions 9 and above:
<!--[if gte IE 9]><script src="/path/to/jquery20.js"><![endif]-->
This is not a comment, unless loaded in IE:
<!--[if !IE]><!--><script src="/path/to/jquery20.js"><!-- <![endif]-->
Re:IE8 = "latest" version for many (Score:4, Insightful)
Those grannies are paying your salary (well, paying the typical web developer's salary, may not apply personaly to you), are you sure you want them to go away?
Re:Like (Score:4, Insightful)
Plenty of tards lead kick ass lives.