Skip to content

cy.isReady()

cy.isReady — Core > Initialisation and lifecycle. Cytoscape.js signatures, parameters and return contract.

cy.isReady — Core › Initialisation and lifecycle

Preview · Core › Initialisation and lifecycle

Read in the complete API reference · All API members

// Whether the render pipeline is usable yet
cy.isReady(): boolean

Whether the render pipeline is usable yet. Always true on a headless instance; on a rendered one this flips when cy.ready resolves.

Returns boolean

true once rendering can proceed

Example

console.log(cy.isReady()); // true

Example graph and handle setup