我对html/css/javascript很陌生。我只是编写了通常通常加载的一个小网站,但有时,(特别是如果我在给定的浏览器中已经几个小时没有加载它)在浏览器中加载得不太好:嵌入字体(用于标题)或javascript (大的“播放”按钮)加载正确。下面是问题发生时的控制台日志 (代码也被复制到下面)。通常,一个简单的刷新(不移除缓存)就足以正确加载页面。wasm streaming compile failed
和falling back to ArrayBuffer instantiation
这两行看起来并不重要,因为当页面正确加载时,它们仍然会出现。
但是,当我在本地加载时,所有这些消息都会出现在控制台中。这可能表明服务器端存在问题(我正在使用免费的Byethost托管)。
如果你能帮忙的话,谢谢!
Failed to decode downloaded font: http://chiptunegenerator.com/Pixel.woff2
OTS parsing error: invalid version tag
wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
falling back to ArrayBuffer instantiation
failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 68 74 6d @+0
CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 68 74 6d @+0
CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 68 74 6d @+0
Uncaught (in promise) RuntimeError: abort(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 68 74 6d @+0). Build with -s ASSERTIONS=1 for more info.
at abort (http://chiptunegenerator.com/fmodstudio.js:9:16016)
at http://chiptunegenerator.com/fmodstudio.js:9:17502
Failed to decode downloaded font: http://chiptunegenerator.com/Pixel.woff
OTS parsing error: invalid version tag
发布于 2021-03-03 15:01:37
我终于摆脱了wasm streaming compile failed
和falling back to ArrayBuffer instantiation
,创建了一个包含以下内容的.htaccess文件:
<IfModule mod_mime.c>
AddType application/wasm .wasm
</IfModule>
然而,问题仍然存在:当我在几个小时前已经在其上加载的浏览器上加载网站时,它会加载一堆不相关的错误,直到我刷新和/或刷新缓存。难以理解..。
https://stackoverflow.com/questions/66454815
复制相似问题