Skip to content

KeyframeKit / getDocumentStyleSheetsOnLoad

Function
getDocumentStyleSheetsOnLoad() ​

ts
function getDocumentStyleSheetsOnLoad(document?: Document): Promise<StyleSheetList>;

Gets a document's stylesheets when it loads, or immediately returns them if it's already loaded.

Parameters ​

document? ​

Document = window.document

The document to get stylesheets from.

Returns ​

Promise<StyleSheetList>