MCPcopy Index your code
hub / github.com/darkreader/darkreader / isDOMReady

Function isDOMReady

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

Source from the content-addressed store, hash-verified

209}
210
211export let isDOMReady: () => boolean = () => {
212 return document.readyState === 'complete' || document.readyState === 'interactive';
213};
214
215export function setIsDOMReady(newFunc: () => boolean): void {
216 isDOMReady = newFunc;

Callers 7

loadingStartFunction · 0.90
loadingEndFunction · 0.90
overrideInlineStyleFunction · 0.90
addDOMReadyListenerFunction · 0.85
dom.tsFile · 0.85
onReadyStateChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected