chrometoasters / ct-jquery-ariaHiddenBreakrange

Accessibly control an element's visibility across a range of breakpoints.
0 stars 0 forks source link

Polyfill load is still buggy in MSIE :( #1

Open dotherightthing opened 10 years ago

dotherightthing commented 10 years ago

.

dotherightthing commented 10 years ago

ct-jquery-ariaHiddenBreakrange.min.js checks for enquire

enquire is loaded

as soon as the script/plyfill has downloaded ariaHiddenBreakrange runs

fails in MSIE

could try complete rather than callback

dotherightthing commented 10 years ago

In isolate tests yepnope/modernizr does work. However within my project (IE) it periodically failed, plus there was a delay before the script kicked in.

For now I'm manually loading the matchMedia polyfill inside a conditional comment in the head of the page:

<!--[if lt IE 10]>
<script src="/themes/inclusive-education-theme/resources/build/scripts/polyfills-msie-header.combined.js"></script>
<![endif]-->