MCPcopy Create free account
hub / github.com/darkreader/darkreader / isReadyStateComplete

Function isReadyStateComplete

src/inject/utils/dom.ts:231–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229// `interactive` can and will be fired when their are still stylesheets loading.
230// We use certain actions that can cause a forced layout change, which is bad.
231export function isReadyStateComplete(): boolean {
232 return document.readyState === 'complete';
233}
234
235const readyStateCompleteListeners = new Set<() => void>();
236

Callers 4

loadImageFunction · 0.90
overrideInlineStyleFunction · 0.90
onReadyStateChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…