injectLink
steal-css.CSSModule.prototype.injectLink
Injects a <link>
tag for this module into the document.head
.
css.injectLink()
Creates a new <link rel=stylesheet>
element using the CSSModule's address as the link's href
. Waits until the link has loaded (using the load
event in modern browsers and other techniques elsewhere).
Returns
{Promise}
A promise that will resolve when the CSS, including all imports, have been loaded.