kubetail-org / loadjs

A tiny async loader / dependency manager for modern browsers (899 bytes)
MIT License
2.57k stars 149 forks source link

Stylesheets not loading in ie11 #103

Open jesserosenfield opened 4 years ago

jesserosenfield commented 4 years ago

Stylesheets were loading inconsistently in ie11

I found that removing the line where the rel is set to preload solved the issue

amorey commented 4 years ago

Is LoadJS using preload in IE11? It should only be using it in Edge: https://github.com/muicss/loadjs/blob/master/src/loadjs.js#L121-L126

jesserosenfield commented 4 years ago

The rel attribute still gets set to Preload though (shown when I inspect element in ie11) and then the style rules from that style sheet are not applied

amorey commented 4 years ago

Can you describe your setup? I tested LoadJS in IE11 running on Win8.1 and it isn't setting rel to "preload":

IE11_-_Win81__Running_
amorey commented 4 years ago

@jesserosenfield There's a github message in my inbox from you saying that you were using an old version of LoadJS but I don't see it here. Can you confirm that you're still seeing this issue?