Coffeekraken.io 0.0.1

linkLoaded

Wait until the passed HTMLLinkElement is fully loaded

Name Type Description Status Default
link { HTMLLinkElement } The link tag to check the loading state required
cb { Function } An optional callback to call optional null

Return { Promise } The promise that will be resolved

Example

    import linkLoaded from 'sugarcss/js/dom/linkLoaded'
linkLoaded(myCoolHTMLLinlElement).then((link) => {
        // do something when the link is loaded
});

Author : Olivier Bossel olivier.bossel@gmail.com