Check Browsers
It is detect your browser and version(Ineternet Explorer).
It detects only desktop browser not mobile browser.
It helps your page styling for each browser.
It appends class with html root element.
If you known some idea for mobile browser, you could send pull request.
Index
Installation
Using CDN:
<script src="//cdn.jsdelivr.net/check-browsers/1.0.4/check-browsers.min.js"></script>
Using npm:
$ npm i -S check-browsers
Using yarn:
$ yarn add check-browsers
Usage
In HTML
... ... ...
You should import it in head element and before stylesheet.
Because importing in head is processed before page rendering.
and importing before stylesheet is processed before styling.
So page styling is more fast.
In module, Webpack, etc.
require statement
;
import syntax
;
In CSS
;/* default style */ /* each browser style */
Browser List
- IE6~11: ie6~11
- MS Edge: edge
- Google Chrome: chrome
- Mozilla Firefox: firefox
- Apple Safari: safari
- Opera: opera