exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
993 stars 117 forks source link

Support parallel requests #173

Open avaer opened 6 years ago

avaer commented 6 years ago

Exokit hasn't supported (or really needed to support) parallelized dom load so far, but we've been seeing some timeout issues when resources like images and scripts load too slowly (serially) on the initial dom bootstrap.

This issue is to track adding support for parallel "running" of the html on load. This seems pretty simple; I think we just need to keep a refcount of the number of resources being loaded in parallel so we know when to emit DOMContentLoaded.

Note that things other than the initial dom load are already parallelized by node's I/O. This is just about the initial load.

avaer commented 6 years ago

This one has gotten worse for some script-juggling load engines after we implemented properly wait for the manual script attach case in https://github.com/webmixedreality/exokit/pull/317.