430 points · by wycats · 14y ago · 229 comments
Don't forget that IE 8 is the last version XP will get and XP is going to be out there for a long time yet (sadly), especially in corporate environments. Effectively (as far as IE only environments are concerned) JQuery has just set a time limit on proper web access for an entire OS.
jQuery 2.0 will be released in "Early 2013". For some time (probably at least 6 months if not longer), jQuery 1.9 and 2.x will be perfectly API compatible. That means that the conditional comment approach will work with very little downside.
That gets us to summer or Fall 2013. At this point, there may be a release of jQuery 2.1. According to the blog post, it will probably contain few new features, and some speed improvements. It will almost certainly not break backwards API compatibility. At this point, you can upgrade to jQuery 2.1 for the speed improvements and simply not use the new features. The conditional comment approach will still work.
That gets us to Spring 2014. At this point, Microsoft will EOL Windows XP. It's frankly hard for me to imagine more than a tiny number of Windows XP users using IE8 at this point. There was a lot of similar-sounding concern about IE6, which has mercifully vanished. IE8 was at 30% last November; it is now down to 15%.
Even at this point, a jQuery 2.2 will likely not break API backwards compatibility. If IE8 clingers are more stubborn than we expect, we can always modify the strategy to be more aggressive about strict compatibility between the branches.
Unfortunately, many of us are still fighting the last war, where the cutting edge (IE6->IE7) was plodding and the slow upgrading tail was huge. It's time that we acknowledged that the ecosystem has changed: the slow upgrading tail grows smaller all the time, as the cutting edge absorbs more of the mindless browser population. At the same time, the pace of the cutting edge grows faster and faster. We aren't quite there yet, but we should prepare for a future that is not a simple clone of the 2004-2008 era of browser development.
It better grow pretty fast. By late 2012, jQuery will still be supporting a browser released in 2001 but by early 2013 it won't support a browser that was only replaced by MS in 2011.
Corporate America is not IE8's only domain. There are a lot of people who don't even know what a browser is. And IE8 was the default browser on Windows 7.
It's still a valid point, but comparing release dates with replacement dates just hurts the whole argument.
Hasn't Microsoft decided to auto-update IE? In that case, most people who don't know what a browser is will already be using IE9 on Windows 7 by 2013 or is there reason to believe otherwise?
They've had nearly 20 years to hop on the bandwagon and start understanding this crazy "internet" thing, and they haven't. A person that behind the times isn't going to buy anything on the internet anyway.
However, if forced, technology departments are quite capable of installing Chrome or Firefox. I don't feel sorry for corporations who have IE[6-8] only apps. I was there 10 years ago when people said that it only had to run in IE, when I said we should test in Firefox too.
I do have to say that my impression from comments that some devs don't actually comprehend the scope of the trouble for some of these companies. On the surface you might think it's just a lazy IT department who won't upgrade the browsers. But really the situation is that companies built their internal infrastructure using things like ActiveX components for IE and these systems are probably more like desktop apps than web-based apps. They use all of the old IE components to interact with the desktop and do things that may still not even be possible with a regular web-based app. So it is not necessarily that they're surfing the web with IE6 because they're too lazy to upgrade the browsers or their javascript code - rather they are stuck with it because they have huge infrastructure that depends on those old components to run. It's hard to actually understand that now, but at the time 15 years ago it was really cutting edge stuff and MS managed to get some serious vendor lock-in.
And certification would need to happen again before any subsequent browser upgrades.
So I hate supporting IE6, but I'm working in health care, so I'm pretty sure that I'm going to be supporting IE6 for a while yet.
Yes, I realize corporate settings can be inflexible enough that it won't happen in some corporations, but isn't it a good thing that corporate IT get more pressure to accomodate?
What time limit? The blog post says jQuery 1.9 will be supported even after 2.0 is released, and that the two APIs will be the same.
I'd also like to point out that this concern only comes into play 2 years from now. We are not intending to drop support for oldIE forever, but we do want to make jQuery smaller and as efficient as possible in the newer browsers, and leaving all the oldIE code in as we progress past these browsers wastes time.
What jQuery 2.1 feature can't you live without?
I haven't tested my stuff on IE6 and IE7 for a long time, but I still do it on IE8 everyday. It was released in 2009! And it's decent enough, PNG transparencies, etc.
jQuery's main raison d'être might have gone out the window.
<!--[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]-->
New browsers will get a lighter download and a faster runtime. oldIE will still work with all the hacks required to make it work.We'll have to deal with two codebases.
Download and runtime speed are not a problem on the Desktop.
They should have had the guts to admit that this is all about mobile. Their denial at the end of the post is symptomatic.
When I'm stuck in the wilderness with nothing but an atom based netbook tethered to a patchy and expensive GPRS connection, I beg to differ.
Anyway, it isn't just about your bandwidth to your desktop - if each user is transferring less it can be significant for the server-side.
If they make proper efforts to maintain 1.9.x for a goodly amount of time the "hitting a bug in one version but not the other" issue shouldn't be more significant than the current "hitting a bug in a third party library (jQuery) which I don't have the expertise to locate+fix" issue that we already have to consider. Of course the "if" at the start of that sentence could be cause for concern but I think the jQuery project has done well enough at QA in the past for me to give them the benefit of the doubt (or at least to reserve judgment) at this point.
Download and runtime are absolutely a problem on the desktop. There will always be a decent amount of people on unreliable connections and mobile devices with slow processors
You already have to deal with two codebases, IE8 and IE9. One can have bugs that the other doesn't.
Right now, you deal with:
* IE8 + jQuery 1.9 * IE9 + jQuery 1.9
I assume you are testing both? If so, then all you will have to do is instead test:
* IE8 + jQuery 2.0 * IE9 + jQuery 2.0
1) Combining jQuery with other JavaScript at build time (to reduce HTTP requests). At built-time, we don't know which browser they're using. We'll end up with two assets (the combined version w/ jQuery 1.9 and the combined version w/ jQuery 2.0).
2) Testing costs. For larger sites it's not a trivial thing to test and support two different versions of jQuery. For any site that still needs to support IE8 (and 7 and 6), it will not be feasible to test and support two different versions of jQuery. As such, we'll never get the benefits of using jQuery 2.0 and would not be able to do so for many years.
3) Plugins will be written that only work for one of the two versions (1.9 or 2.0). This will divide the plugin ecosystem. Ideally, plugins should work for both, but many people will only test and support their plugins on one of the versions.
In other words, it will correctly use jQuery 2.0, like any other browser without conditional comment support.
Yep, it's ancient. Chrome and Firefox are on average about 3 weeks old. IE8 is over 50 times older.
>jQuery's main raison d'être might have gone out the window.
Normalization was just one part. It still provides a much nicer API. There are also events, AJAX, effects, and some useful helpers.
[].slice.call(document.querySelectorAll('p')).forEach(function (el) {console.log(el);});
vs $('p').each(function () {console.log(this);});I hope you realize that by saving yourself a few characters you've sacrificed an unknown amount of performance from your site. For such a simple query I'd use getElementsByTagName instead.
The point was to demonstrate that the API is somewhat flawed since it doesn't return something usable. The "clever" short version was used to show that you have to write quite a bit more code - even if you make it really ugly.
>For such a simple query I'd use getElementsByTagName instead.
It's a generic example. The selector was kept short and simple for the sake of brevity.
But is that really the best possible use of your time?
BTW that could be written like this:-
[].forEach.call(document.querySelectorAll('p'), function (el) { console.log(el); });They're pretty clear that 1.9 and 2.0 will have API compatibility so there is an option for those who still have to support oldIE and one for those who don't have to. Seems like the best possible arrangement.
That's old!
When JQuery 1.9 is released in 2013 it'll be four years old. Windows XP is eleven years old and will be end of lifed in early 2014. At what point will you pull the pin?
I think this is a good roadmap for phasing out Old IE support. It's not like they're yanking the rug out from under you - 1.9.x will be around for a while yet.
I was, at the time, living with my girlfriend and a friend of hers, both of whom used 10.4 and Safari 1.x: it was honestly quite common among people who couldn't quite afford new computers.
Regardless, when we sent the demo of our product for the local school district I was getting reports that the entire browser was crashing, which I traced down to some sketchy code in jQuery that had been tested so poorly on this version of Safari that no one noticed this highly fatal error.
When I reported the issue to a major jQuery contributor (a friend of mine), all I got was flak that people shouldn't be using that browser and should upgrade to 10.5... obviously I have never used jQuery in a project again.
Which was a perfectly sensible decision from a developer POV considering how bad Safari's JS and DOM support was until 3.x
> despite that being available version of Safari available for Mac OS X 10.4.
10.4 was released with Safari 2.0 and got updates up to 4.1.3. Are you talking about 10.3?
The project I was working on was the kind of thing that probably had just a couple hundred people (if that, maybe even less) visit it during our testing period, and I got multiple reports of that crash.
If you want to popup a dialog box on these devices that says "I'm sorry, you are not supported" that's fine, but if it isn't even being on a browser like that, then no: it becomes entirely correct to point out that it was never actually good at handling cross-browser compatibility issues.
It's a little like saying "the main sole goal of your existence".
Microsoft is the only major browser vendor to believe that a 3-year-old browser is acceptable on a supported OS (XP). Google, Mozilla, Apple, Opera support XP with their latest browsers.
I agree it's too soon to drop support for IE8, but I'd love to see more pressure put on MS for leaving XP+IE users stuck with a second rate browser.
- If you're using JS for progressive enhancement on an otherwise static site, e.g. form validation, pjax, image carousels, tabs, animations... simply drop that JS for 6-8. Form validation should just round-trip to the server as it has to do anyway, pages should just link normally, other visual enhancements can be dropped. That's the progressive enhancement way after all.
- If you're trying to build a single-page web app for IE 6-8 and this is your reason for wanting jQuery to work, then you're going to find those browsers have JS engines that are incredibly slow and a JS-heavy web app for oldIE is not going to deliver a good user experience even if you get it to 'work'. I think frankly this is an unrealistic goal from the get-go. The pitiful speed of JS on these browsers is something that does seem to be often overlooked.
If you absolutely have to push a single-page web app to a corporate customer stuck on oldIE, Chrome Frame is a very sensible option. This has served us well and we've yet to encounter a customer who complains, as long as you give them plenty of forewarning and explanation. It can be tied down to only trigger on your site, so sysadmins really have nothing to gripe about with respect to FUD about attack vectors etc.
Anyway I'm not saying 'you definitely shouldn't be serving JS to oldIE' I'm just putting it out there as something to consider, as usual in this business there's no single answer.
[1] http://css-tricks.com/ (serves a print stylesheet for oldIE - possibly just IE6 I forget)
[2] http://www.stuffandnonsense.co.uk/blog/about/universal_inter...
Dropping support for popular browsers doesn't seem to help me much.
"jQuery was conceived specifically to address the differences in browsers, so we’re not going to abandon the essence of our philosophy and simply disregard the millions [still using] oldIE. Yet we also want to move ahead and take advantage of modern browsers, especially the growing mobile market."
The whole point of jQuery is that it's supposed to allow you to move ahead without losing backwards compatibility. Making this split -- especially with a version number, which implies a feature-freeze for 1.9 and new stuff only in 2.0 -- seems like they're just admitting defeat on their primary function.
There were several fairly well known libraries a couple of years ago, but as far as I can tell, jQuery won that battle decisively. It has almost 100% penetration in the projects I'm familiar with that use a general purpose JS library, and it seems to be the default for articles and blog posts I find on-line these days too.
Part of that success came from the ecosystem reaching critical mass. Many people know jQuery. Many plug-ins are available for jQuery. And the vast installed base usually means quick bug fixes even for recent browser compatibility problems.
If there is something out there that is better by a wide enough margin to justify giving up that established ecosystem, I'd love to hear about it. The ecosystem has plenty of imperfections, but I haven't come across anything yet that seems nearly comprehensive enough to displace the incumbent here.
And the corporate clients could finally get through their heads it is not ok to expect employees to be accessing the internet through IE. Businesses don't have the rights to stick their fingers in their ears singing 'lalala' while the internet attempts to grow around the tumour of conditional comments and other crap.
Still you gotta catch up at some point. The product I work on is dropping IE8 in January, which will cause some of our larger and less nimble customers to get stuck on an older version until they can fix their browser situation.
So... don't upgrade IE, but give people the option of - you know - running another browser. The IT folks can even lock it down so no one can do anything useful with it, but they could give people firefox, chrome, safari or opera as another tool on their desktop.
Holding back an entire company's ability to do any modern browsing because you're still tied to one HR intranet app from 2003 is just silly. There's no sane argument to be made for it, in light of the short- and long-term opportunity costs it imposes.
0. Rename IE to 'intranet'. 1. Configure IE to only access Intranet. 2. Switch everyone to chrome/firefox, keep bookmarks, etc 3. Hire some university students to temp man the support line as you are flooded with support requests.
As I said a nasty situation. Perhaps it would be best to spread a rumour that someone was fired thanks to IE. That way you are not evil IT getting in the way of everyone's job.
...or their company doesn't have the budget to upgrade their entire department to Windows 7.
I guess those are pretty old browsers, so oh well.
<!--[if lt IE 9]><script src="jquery-1.9.0.js"></script><![endif]-->
You're not "fucking IE" though, you're fucking the end-users; many of whom might be stuck on XP (and therefore IE8) without a huge choice. Corporate users, education users, those without the money to upgrade their OS/machine, etc.
The less usable the net is for older browsers, the closer we move the users of those browsers to the threshold of upgrading.
It may mean more complaints from the staff to the IT department, it may mean grandma asking her grandkids why the google is broken, but if enough people are vocal about it, it will encourage upgrading.
Every time you support IE, you are slowing the uptake of newer browsers, and you are a bad person for it.
You can either stick with JQuery 1.9 for as long as you want to support IE8 (hopefully not more than 10 or 20 more years).
Being stuck on XP does not mean that you have to use IE8. You can still use the latest version of Chrome, Firefox, Opera, or even Safari.
My company dropped IE 7 support months ago, I look forward to the day we can drop IE 8. We'll probably be suck with jQuery 1.9 for a while, but my side projects will start using 2.0 right away.
One of our products is a B2B analytics tool that leverages a custom Chrome extension for one piece of functionality. As a result, all of our users are on Chrome.
We already use chai for testing, which doesn't really work in older IE versions, and it'll be great to get the performance improvement from this change as well.
I don't really see the problem anyway. JQuery can move forward, and those that want to support IE8 have JQuery 1.9 and I'm sure there will be a cottage industry of people maintaining updates to support IE8 for the next 20 or 30 years. In the meantime, the rest of the world will be able to move on. Perhaps people could even use UserAgents to provide legacy experiences for the IE8 crowd ... multiple views ... what a concept.
IE Market Share: http://bit.ly/LUhxlA
IE Version Market Share: http://bit.ly/LUh9n2
If that's true, this seems like an odd line in the sand for them to draw. IE9 isn't available before Win7, so it can't die until users upgrade their OS.
According to StatCounter[1], IE8 still represents 13.78% of Worldwide visits (plus 1.4% for IE7; IE6 is just part of 'other' now), and 14.92% of North America (IE7; 1.79%).
[1] http://gs.statcounter.com/#browser_version-ww-monthly-201206...
Explanations littered with reasoning and also a code-level solution for something that won't be an issue until one year down the road. Hopefully that 93KB (un-Gzipped) beast can be knocked down a bit with 2.X.
I still do support IE8 but it is a pain in the ass to have to work around stupid bugs...pseudo elements are not well supported, font rendering is subpar, no css3 support, sloooow JavaScript engine...and I could go on for ever.
Internal IT departments have no, no, no incentive to upgrade browsers. "Surfing the internet" is not a reason for IT departments to upgrade.
It's much easier for the app developer to create poorly written hacks for the older js libraries, because they are less likely to force a browser requirement change.
For enterprise apps, 1.9 is going to be around for an extremely long time.
If your startup is C2C, everything is fine, if your B2C or B2B your in trouble. If your B2X then you even do not have the leverage of a contract etc.
Unless they are contributing more revenue than it takes to support them, screw them. For me at least, this is not remotely the case and I'm happy to leave them in the dust.
Even though jQuery handles most of my cross-browser issues I still have to test and worry, create workarounds and lots of additional code, consider it in my architecture, take care in the design and handle it in the application lifecycle.
I have been looking for and at able framework that DON’T support old browsers. Thank you for not supporting IE-ancient in your 2.+ releases, I will continue using you jQuery!
IE6 fine, IE7 fine but not IE8. IE8 is required for most corporate environments where they haven't killed of Windows XP yet. That is a surprisingly large amount of people.
If this happens, we'll fork jQuery 1.9 and support it separately.
The NHS in the UK has over 1 million Windows XP deployments out there still on NHSnet which is a nationwide secure private WAN. A lot of software vendors have to support that.
Your view is popular but naive.
The site reports that in the US, IE6 has 0.6% market share — relatively nothing. But look over at China: 22.4% of its 500 million Internet users still browse with IE6. Moving forward benefits the Internet as a whole, but the Chinese market is one instance where backward compatibility is important.
They should give 1.9, 2.0, and 2.1 names, and make 2.0 mainline, and call 1.9 "compat" or something and encourage the conditional comments. Then, soon, they should start working on 2.1, which isn't API compatible with a version that's compatible with IE 6/7/8. The current plans for 2.1 are an awfully long time to wait for features that aren't available with IE 6/7/8, for apps and sites that need such things (and have a target audience that is ready for it).
zeptojs.com
See http://zeptojs.com/#platforms - specifically "we may add support for Internet Explorer 10 ... depending ..." and the lack of any mention of IE before 10.
In a world where technology is developing at such a pace, it really is time we stopped worrying about old, poorly built bits of software.
The real losers will probably be the public libraries that provide Internet access, but don't have the resources to afford equipment or manpower to upgrade machines and browsers.
jQuery is a very invasive API. Its goal is to steal all the work from the developer, and to "guarantee" what it deems to be "correct" input for a certain subset of browsers. This approach may ostensibly work, but inevitably falls apart, which leads to thousands of "bugs" being reported.
Because the API has grown to be so massive, goalposts "must" be moved in order to create a lighter API. Once again, this is because of a design flaw. Goalposts will continue to be moved in cyclical fashion unless an alternative design is used. Fellow developers may denigrate me for it, but I will explain how this problem can be avoided.
An API that tries to cater to everyone cannot and will not succeed. This is evidenced by the upcoming "fork". Conversely, an API that provides a set of tools to developers without catering can work in many environments. The burden is then placed upon the developer to choose which environments matter. As has been outlined by mobile developers, object inferences for IE 6 really are unnecessary for mobile Webkit environments. I have written here on this concept before, mostly on the topic of "graceful degradation". Browser specificity can and will kill a client-side API.