MCPcopy Create free account
hub / github.com/breck7/scroll / startWhenReady

Method startWhenReady

external/.scrollLibs.js:24314–24323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24312class DefaultTheme extends AbstractTheme {}
24313class AbstractParticleComponentParser extends ParserBackedParticle {
24314 async startWhenReady() {
24315 if (this.isNodeJs()) return this.start()
24316 document.addEventListener(
24317 "DOMContentLoaded",
24318 async () => {
24319 this.start()
24320 },
24321 false
24322 )
24323 }
24324 start() {
24325 this._bindParticleComponentFrameworkCommandListenersOnBody()
24326 this.renderAndGetRenderReport(this.willowBrowser.getBodyStumpParticle())

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
isNodeJsMethod · 0.45

Tested by

no test coverage detected