NOTE: this project is not mine. I just published it to npm because I was needing it. I would gladly pass the ownership to the real maintainer.
There is an open issue for this, if you are the owner you can mention me there: https://github.com/youmustfight/aframe-asset-lazy-load/issues/8
An a-entity component to assign asset loading order and delays
Install (or directly include the browser files).
npm install --save aframe-asset-lazy-load
;var layout = Component;AFRAME;
Use with delays or chunks.
Chunking is simply a way to block asset loading. For example, Let's say you have a game with a cinematic opening. Currently, you have to load all your assets at the start, meaning textures for the game are taking up bandwith you might want to use to get a user in the door. With chunking, you can set what is to be loaded immediately, via chunk 1, and what is to then be loaded upon those being completed, via chunk 2. This lets you spread out asset loading to make the immediate experience smoother.
|delay||Milliseconds waited until an image is appened to a-assets.||0|
|chunk||Slot an asset is placed in for loading. Multiple assets can be assigned to the same chunk. Over-rides delays|
|src||Path to the image being loaded|
|id||The ID being associated with the entity's material property and element in a-assets.|