injectLink

  • function
steal-css.CSSModule.prototype.injectLink  

Injects a <link> tag for this module into the document.head.

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.

Help us improve StealJS by taking our community survey