Loading our module asynchronously makes the initial module's size is as small as possible to minimize video startup time.
The load timing is configurable by three parameters (in decreasing order of priority):
These are mutually exclusive.
- If more than one parameter is defined at the same time, only the one with highest priority is considered.
- If no parameters are set, the module is loaded directly.
If asynchronous loading is required, the basic configuration 'loadAfterPlaybackStarted' should be used.
'fragmentsFetchedBeforeLoad' and 'secondsPrebufferedBeforeLoad' are more advanced and should be used for fine tuning only when the basic configuration is not enough.
All parameters are optional.