⬆️ ⬇️

Notification that the browser is outdated

Teaser They are going away. Yesterday we had to fasten another crutch for IE6 / IE7, and now this is no longer necessary. In the CIS, IE6 today has only 0.5% of traffic, and IE7 has 1.8%. They really go away. I think that the majority of web designers have not long achieved pixel-by-pixel correspondence to the layout, and someone does not even check for the performance of sites in such old browsers. In this case, it will not be superfluous to warn the user that the site may not work correctly and suggest upgrading. I offer a ready-made kit from the warning panel and a page with a suggestion to choose a new browser.



You can use it as is, or fix it to fit your needs. I hope you save some time anyway.



How to use?



You can simply insert this line immediately after the opening <body> tag or in the <head> section:

<!--[if lte IE 9]><script src="http://phpbbex.com/oldies/oldies.js" charset="utf-8"></script><![endif]--> 


Because of the conditional comment, this script will only be loaded in IE9 and under. If desired, you can lower the bar to IE8 or IE7, correcting 9 to 8 or 7, respectively. At this address the script will be available all the time, because in this form it is used in phpBBex . But if you are not satisfied with this dependency, you can download an archive with source files, on the basis of which you can make your version.



What does this look like?



Users of older versions of IE will see a notification styled as IE6:

')

Notification



When clicking on it, the user will see the page for selecting a new browser:



Browser selection page



Here, many habravchan should have the feeling "I have already seen it somewhere." Indeed, this is a revised browser selection page, which someone in 2009 already published on Habré (unfortunately, did not find the original post).



What about IE8?



IE8 accounts for 5.1% of the traffic - still enough to ignore the existence of such a browser. But its share is rapidly falling. The very moment is not far away ...



IE version popularity



But what about the older versions of other browsers?



As a rule, the problems of “a significant proportion” of outdated versions do not concern alternative browsers - old Firefox, Chrome and Opera almost completely disappear within two to three years after the release of new versions. Firefox 3.6 was a candidate for the “long-liver”, because many Firefox fans were cold with the new interface and tight release schedule of their favorite browser, consciously staying on the old version. It has been a little over a year since the release of Firefox 4, and now Firefox 3.6 has only 2.3%. Its share drops faster than the share of outdated versions of IE.



Falling popularity of outdated browsers

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



All Articles