HTMLLinkElement: blocking property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The blocking
property of the HTMLLinkElement
interface is a string indicating that certain operations should be blocked on the fetching of an external resource.
It reflects the blocking
attribute of the <link>
element.
Value
A string. Must be a space-separated list of blocking tokens listed below indicating the operations that are to be blocked:
render
-
The rendering of content on the screen is blocked.
Examples
html
<link
id="el"
rel="stylesheet"
href="/example.css"
blocking="render"
crossorigin />
js
const el = document.getElementById("el");
console.log(el.blocking); // Output: "render"
Specifications
Specification |
---|
HTML # dom-link-blocking |
Browser compatibility
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.