getStyles()

The global function window.getStyles() accepts one or more URLs of remote CSS stylesheets and attempts to load them. The function returns a Promise.

If loading is successful, all remote CSS rules are applied as new <style> elements to the <head> section of the story.

Example

window.getStyles("https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css");

results matching ""

    No results matching ""