2.0.2
- 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.
2.0.1
- Fixed docs issues.
- Fixed bundling issue.
- Updated dependencies.
2.0.0
- 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 thecssDisabledevent so that you can undo any DOM manipulations and then stop any further JS from executing yourself. - Added a
justCheckparam to restore the previous default behavior of just checking if CSS is disabled. The newcssDisabledevent will still fire ifjustCheckis set.
- Refactored the module considerably.
- Updated dependencies.
1.0.0
- First version.