HTMLScriptElement: blocking プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

blockingHTMLScriptElement インターフェイスのプロパティで、スクリプトを取得する際に特定の操作を実行しないことを示す文字列です。

これは <script> 要素の blocking 属性を反映しています。

文字列です。ブロックする操作を示す下記のブロックトークンのスペース区切りのリストでなければなりません。

render

画面へのコンテンツの描画がブロックされます。

html
<script id="el" type="text/javascript" async blocking="render"></script>
js
const el = document.getElementById("el");
console.log(el.blocking); // 出力: "render"

仕様書

Specification
HTML
# dom-script-blocking

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
blocking

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

関連情報