The following onload event doesn't fire in IE11 and Microsoft Edge 40:
<link href="https://fonts.googleapis.com/css?family=Montserrat:300" rel="preload" as="style" onload="this.rel = 'stylesheet';">
The onload
does fire if you give the <link>
element a valid rel="stylesheet"
:
<link href="https://fonts.googleapis.com/css?family=Montserrat:300" rel="stylesheet" onload="alert('this works')">
What is a working fallback solution for rel="preload"
on Internet Explorer/Edge?