Limited availability
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.
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.
Note: Only link
elements in the document's <head>
can possibly block rendering. By default, a link
element with rel="stylesheet"
in the <head>
blocks rendering when the browser discovers it during parsing. If such a link
element is added dynamically via script, you must additionally set blocking = "render"
for it to block rendering.
<link
id="el"
rel="stylesheet"
href="/example.css"
blocking="render"
crossorigin />
const el = document.getElementById("el");
console.log(el.blocking); // Output: "render"
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4