play-co / timestep

GNU General Public License v3.0
16 stars 27 forks source link

fix: added preloader optimization #105

Closed Wunderkemmer closed 8 years ago

Wunderkemmer commented 8 years ago

I added an array to track all of the unique resources that loader.js is asked to preload, and only allow it to preload unique resources a single time. This seems to implicitly squash my preloader issue, but I'm not sure if it's a complete fix. I still need to see if it works when loading assets from Japan, but here's the change for early review, in case it's not acceptable for inclusion in an official build.

Raymond does not think this will effect the image caching the browser is handling, so it should be safe.

Snailprincess commented 8 years ago

LGTM

Wunderkemmer commented 8 years ago

Raymond also approved!