Extensions

Press shift + S to search API reference.

Function

loadScriptFromURLAsync

View source

Injects Javascript from a remote URL.

Returns a promise that resolves to the HTML script element inserted into the page.

import {loadScriptFromURLAsync} from '@airtable/blocks/ui';
loadScriptFromURLAsync('https://example.com/script.js');

Function signature

function (url: string) => Promise<HTMLScriptElement>
url

The URL of the script.