- Put your changes here...
- Fixed a bug that would prevent the module from detecting new
<link>
tags inserted into the page after the DOM loads. - Fixed a bug that would cause the module to remove CSS files overly aggressively.
- Fixed docs issues.
- Fixed bundling issue.
- Updated dependencies.
- Added feature to detect if stylesheets failed to load. If a CSS file fails to load, this module will emit an event called
cssDisabled
. - Altered default behavior to take action if CSS is disabled:
- If CSS is disabled at the browser level, this module will throw a JS error to prevent any further JS from executing.
- If a CSS file fails to load, this module will remove all
<link>
tags and<style>
tags from the DOM and emit thecssDisabled
event so that you can undo any DOM manipulations and then stop any further JS from executing yourself. - Added a
justCheck
param to restore the previous default behavior of just checking if CSS is disabled. The newcssDisabled
event will still fire ifjustCheck
is set.
- Refactored the module considerably.
- Updated dependencies.
- First version.