Skip to content

EmbedComponent.loadFile method

EmbedComponent › loadFile

Unofficial

Load the file into the component.

Obsidian awaits the returned promise as part of the render, and most built-in embeds load asynchronously.

Signature:

loadFile(): Promise<void> | void

Returns: Promise<void> | void — A promise that resolves when the file is loaded, or nothing when it loads synchronously.