whendefined
v0.0.1
Published
Provides a callback for once an object has been defined
Downloads
842
Readme
whendefined
Provides a callback for once an object has been defined
Example Usage
whenDefined(window, 'intercomSettings', function() {
alert('loaded');
});
Credit
All credit goes to http://fokkezb.nl/2016/04/14/how-to-wait-for-a-javascript-variable-to-be-defined/