2 ms·
With type="module" and need to set ContentType they've invented new attribute and alias <script src="foo.wasm" type="module" iftype="webassembly"> but the
by sergeykish 6y ago
With type="module" and need to set ContentType they've invented new attribute and alias
<script src="foo.wasm" type="module" iftype="webassembly">
but there is no need
<script src="foo.wasm" type="application/wasm">
is not executed, so it can be used as is.
And "if" keyword means make a request with ContentType: "/", discard if result ContentType does not match. Which is ... strange?