So I did some research but didn't found what I was exactly looking for. I found this question to see how to preload images (and will probably work for video as well, I guess?)
So the question is should we preload the ressources (video/images and not css or scripts) ? I'v made a gacha system (like gacha games on mobile) where you 'pull' characters and a video loads just before every 'pulls'. In local everything was fast and cool but now that I hosted it and tried it ... it was so long because nothing was already computed.
There are too many images to just preload the all at the start of the "game" I though to how to solve it and I think that I should
- Check every character that someone will get, prompting some loading screen
- Preloading the ressources associated with the list of chars from step1
- Dismissing the loading screen and doing the actual pulls
Does this look ok? Are there other ways to do it? I searched but didn't found how other people handles the problem (I kinda suck at searching stuff :/)