summaryrefslogtreecommitdiffstats
path: root/platform/javascript/js/engine/preloader.js
Commit message (Collapse)AuthorAgeFilesLines
* [Web] Rename JavaScript platform to Web.Fabio Alessandrelli2022-08-291-133/+0
| | | | Also rename export name from "HTML5" to "Web".
* [HTML5] Disable body_size in fetch.Fabio Alessandrelli2021-04-031-17/+0
| | | | | | | | | | | | | | We were using `Content-Length` from the server when `Content-Encoding` was not set (i.e. response was not compressed). Sadly, in CORS requests accessing headers is restricted, and while `Content-Length` is enabled by default, `Content-Encoding` is not. This results in the impossibility of knowing if the content was compressed, unless the server explicitly enabled the encoding header via `Access-Control-Expose-Headers`. To keep maximum compatibility we must disable `body_size` completely.
* [HTML5] Export process writes sizes in template.Fabio Alessandrelli2021-03-051-6/+6
| | | | | | This allow the loading bar to be much more reliable, even in cases where realible stream loading status is not detectable (server-side compression, chunked encoding).
* [HTML5] Preloader fetch, streaming instantiation.Fabio Alessandrelli2021-03-051-49/+72
|
* [HTML5] Run eslint --fix.Fabio Alessandrelli2020-11-231-34/+32
| | | | Should I write a poem about this whole new world? ;)
* [HTML5] Libraries refactor for linting.Fabio Alessandrelli2020-11-211-0/+129
Initial work to make liniting easier. This includes: - Rename http_request.js to library_godot_http_request.js. - Rename externs.js to engine.externs.js. - New library_godot_runtime.js (GodotRuntime) wraps around emscripten functions. - Refactor of XMLHttpRequest handler in engine/preloader.js. - Few fixes to bugs spotted by early stage linting.