Skip to content

xcatliu/goodbye-ie8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Goodbye IE8

As more and more JavaScript frameworks and libraries dropped IE8 support, It's time to say goodbye to IE8.

Let's work together to promote the evolution of the browsers!

Gravestone

gravestone

In Loving Memory Of
WINDOWS INTERNET EXPLORER 8 (IE8)

Always in our thoughts
Forever in out hearts

// TODO: Complete the gravestone

What to Do

1. Add alert message for IE8 users

Copy this code as the first child element of <body>:

<!--[if lt IE 9]>
  <p style="text-align: center!important; margin: 0 0 0.5em!important; background-color: #d9534f!important; color: #fff!important; padding: 0.5em 1em!important;">You are using an <strong>outdated</strong> browser. Please <a style="color: #fff!important; text-decoration: underline!important;" href="http://browsehappy.com/?locale=en">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

Preview what alert message will show on IE 8 and lower: http://xcatliu.github.io/goodbye-ie8

Code was forked from https://github.com/h5bp/html5-boilerplate/blob/master/src/index.html

中文版:

<!--[if lt IE 9]>
  <p style="text-align: center!important; margin: 0 0 0.5em!important; background-color: #d9534f!important; color: #fff!important; padding: 0.5em 1em!important;">您正在使用 <strong>过时的</strong> 浏览器,请 <a style="color: #fff!important; text-decoration: underline!important;" href="http://browsehappy.com/?locale=cn">升级你的浏览器</a> 获得更好的用户体验。</p>
<![endif]-->

2. Drop css hacks for IE8

CSS Hacks used to be an effective way to keep browsers looks good, now let's drop them.

// TODO: Best Practice: try css preparsers like sass or less with postcss plugins.

3. Feel free to use ES5 features

According to Compatibility Table for ES5, IE9+ supports all ES5 features. It's safe to use them without es5-shim.

4. Remove HTML5 Shiv

The HTML5 Shiv enables use of HTML5 sectioning elements in IE8. It's not necessary now.

5. Anything else?

// TODO

Contributing

Any issue or pull requests are welcomed.

References

Releases

No releases published

Packages

No packages published

Languages