At the start of everything, I do a query for a-entities, and then filter the array if they have the attribute 'lazy-load'.
It seems redundant, since we know what entities have the attribute when components are being initialized. Ideally, I'd like to have the components push themselves in an array during their inits. Unfortunately though, I wasn't sure how a component would know if it was the last one (so it could initialize the loading sequence)
At the start of everything, I do a query for a-entities, and then filter the array if they have the attribute 'lazy-load'.
It seems redundant, since we know what entities have the attribute when components are being initialized. Ideally, I'd like to have the components push themselves in an array during their inits. Unfortunately though, I wasn't sure how a component would know if it was the last one (so it could initialize the loading sequence)