HasBlocking
API reference › HTML Attribute › HasBlocking
Used by 3 types
Provides an immutable API for the blocking attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style#blocking.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
blocking() | Sets the blocking attribute. | HasBlocking |
Method details
Section titled “Method details”blocking()
Section titled “blocking() ”public function blocking(string|UnitEnum|null $value): staticSets the blocking attribute.
Controls whether rendering waits for the external resource.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|UnitEnum| | Blocking token, or null to remove the attribute. |
Returns
static: New instance with the updated blocking attribute. Blocking for predefined enum values.
Throws
InvalidArgumentException: If the value is not valid.