8.0.1 • Published 6 years ago

normalize.css-without-attribute-selectors v8.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

normalize.css without attribute selectors

This is a fork of the famous normalize.css from Nicolas Gallagher and Jonathan Neal where all attribute selectors have been removed.

npm license changelog

NPM

npm install --save normalize.css-without-attribute-selectors

Why remove attribute selectors?

There is a huge performance bottleneck in Microsofts Internet Explorer 11 when using attribute selectors. Rendering or styling of DOM elements takes up to 30-50 times longer when attributed selectors are involved. It's not only the usage of these selectors but there sole existance in a parsed CSS file or in a <style> tag.

Alexei Antipov wrote an excellent article on Medium.com where he figured out this IE11 issue.

Usage

@import 'node_modules/normalize.css-without-attribute-selectors/normalize.css';

or

<link rel="stylesheet" href="node_modules/normalize.css-without-attribute-selectors/normalize.css">

Credits

All credit should go to normalize.css. I just removed all attribute selectors. If you have questions about the source, check out the original source and this for details.

License

MIT