MozillaReality / puzzle-rain

INACTIVE - A musical WebVR journey for the HTC Vive. Brought to you by Mozilla VR.
https://vr.mozilla.org/puzzle-rain/
MIT License
33 stars 11 forks source link

Reduce number of duplicated XHR requests (w/ THREE.js', albeit limited, caching mechanisms) #91

Closed cvan closed 2 months ago

cvan commented 7 years ago

Some are loaded only 2 times, and others are loaded 12+ times. Here are a few examples of the 191 requests:

screen shot 2016-10-05 at 8 14 55 am screen shot 2016-10-05 at 8 14 47 am screen shot 2016-10-05 at 8 13 11 am screen shot 2016-10-05 at 8 14 36 am screen shot 2016-10-05 at 8 14 24 am screen shot 2016-10-05 at 8 14 11 am screen shot 2016-10-05 at 8 14 01 am screen shot 2016-10-05 at 8 13 11 am

cvan commented 7 years ago

We had and have several issues on file for A-Frame. @ngokevin and @dmarcos closed a ton of them by doing a lot of smart stuff to make asset management work well. There are still a ton of open issues in three.js, though there are ways to work around it (by not directly using the loaders, using in-memory objects to cache, using the Cache API [introduced by the Service Worker API], or as a last resort IndexedDB could be used).

Relevant three.js issues: