kubetail-org / loadjs

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

, type='text/javascript') #33

Closed cekvenich closed 7 years ago

cekvenich commented 7 years ago

Hi, I'm using your great loader a few places, ex: https://cekvenich.site44.com/post/IDE/.

If you view console - notice the warning that chrome will follow spec and stop loading if type='text/javascript' and such is missing. I hope you can view the console and help decipher the warning, I think that is what they are saying. ( source is here but you won't need it https://github.com/cekvenich/murder/tree/master/cekvenich.site44.com )

I have to deploy new code before. Can you please add types to all loads based on extension? ex: .js is text/javascript' .

amorey commented 7 years ago

The warning in the console refers to invalid type/language attributes and as far as I know a missing type attribute is still considered valid (it gets set to "text/javascript" by default).

In your source HTML there are two tags with type="riot/tag", is it possible these are causing the warning:

<script src="/_compHost/home-card.tag" type="riot/tag"></script>
<script src="/_compHost/x-vid.tag" type="riot/tag"></script>
cekvenich commented 7 years ago

That was the error. Pardon me.

On 12/28/16 12:47 AM, Andres Morey wrote:

The warning in the console refers to invalid type/language attributes and as far as I know a missing |type| attribute is still considered valid (it gets set to "text/javascript" by default http://stackoverflow.com/questions/4195427/is-the-type-attribute-necessary-for-script-tags).

In your source HTML there are two tags with |type="riot/tag"|, is it possible these are causing the warning:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/muicss/loadjs/issues/33#issuecomment-269429431, or mute the thread https://github.com/notifications/unsubscribe-auth/AVN9pgZpf34r8VugtT4NDx6Seju6P6dyks5rMffpgaJpZM4LWkoG.