In the openfl html5 project, there are a large number of 2mb small resources. Should we directly embed them or choose to manually load them?

In the openfl html5 project, there are a large number of 2mb small resources. Should we directly embed them or choose to manually load them?

Can experts share some experience?

I am guessing these resources you mention are particular to your project. For myself, I make those decisions based on whether assets are quick to load and if they are useful always or only in certain application states. Does it make sense to let the user start the application quickly now, only to make them wait for a 60 mb download later? And what performance impact is there? It’s hard to prescribe anything without a lot of detail.

First of all, thank you for your answer. Yes, a large number of 2mb JSON files are animation data

Sounds like it might be an option to load them on an as-needed basis.