HTMLScriptElement: blocking プロパティ
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
blocking
は HTMLScriptElement
インターフェイスのプロパティで、スクリプトを取得する際に特定の操作を実行しないことを示す文字列です。
これは <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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
blocking |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.