Web features explorer

Top-level await

Widely available since 2024-03-20
Tags: javascript Groups: JavaScript

The await keyword, when used at the top level of a module (outside of an async function), delays parent module execution until after a promise fulfills.

Learning resources on MDN

Browser support