Web Platform Atlas
EN⚡RUUA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Каталог / UI Events / load

3.2.3.1 load

Статический предпросмотр (RU): для MDN, WPT, глоссария и BYOK-перевода откройте интерактивный Атлас.
⚡ Открыть главу в Атласе

3.2.3.1. load

Тип

load

Интерфейс

UIEvent if generated from a user interface, Event otherwise.

Синхронность / Асинхронность

Async

Всплытие

No

Доверенные цели

Window, Document, Element

Отменяемость

No

Действие по умолчанию

Нет

Контекст (доверенные события)

Event.target : common object whose contained resources have loaded

UIEvent.view : Window

UIEvent.detail : 0

A user agent MUST dispatch this event when the DOM implementation finishes loading the resource (such as the document) and any dependent resources (such as images, style sheets, or scripts). Dependent resources that fail to load MUST NOT prevent this event from firing if the resource that loaded them is still accessible via the DOM. If this event type is dispatched, implementations are REQUIRED to dispatch this event at least on the Document node.

For legacy reasons, load events for resources inside the document (e.g., images) do not include the Window in the propagation path in HTML implementations. See [HTML5] for more information.