Defines and exports callback and loaded
- License:
- MIT
- MIT
- Source:
Methods
(static) loaded(v, fx, delay, maxRetriesCount, counter)
Check if a ressource is loaded and callback when it is.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
v |
*
|
Ressource to test |
fx |
function
|
Callback to execute when the ressource is loaded |
delay |
Integer
|
Delay between each checks in ms |
maxRetriesCount |
Integer
|
Max checks for a ressource |
counter |
Integer
|
Memo for the recursive function |