Closed codewithkyle closed 4 years ago
In the runtime.js file the el.addEventListener('load') event isn't firing. We should consider just resolving when we detect IE.
runtime.js
el.addEventListener('load')
Possible Solution
if ('-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style) { setTimeout(()=>{ count++; if (count === required) { resolve(); } }, 150); } else { el.addEventListener('load', () => { count++; if (count === required) { resolve(); } }); }
This issue is related to #205
We're overthinking this. Just use document.createElement and append it to the <head> and listen for the load event.
document.createElement
<head>
load
In the
runtime.js
file theel.addEventListener('load')
event isn't firing. We should consider just resolving when we detect IE.Possible Solution