Skip to content

waitUntilConnected

Waits until the given element is connected to the DOM.

Import:

import { waitUntilConnected } from 'obsidian-dev-utils/html-element';

Signature:

function waitUntilConnected(el: HTMLElement): Promise<void>

Parameters:

ParameterTypeDescription
elHTMLElementThe element to check.

Returns: Promise<void> — A promise that resolves when the element is connected.