Favorites

HTML blocking Attribute

blocking
HTML AttributeThis attribute is supported in some modern browsers, but not all.
Updated 22nd November 2026

The blocking attribute with the value render makes a script, style sheet or link render-blocking, so the page is not shown until it has loaded.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The blocking attribute marks a resource as render-blocking: the browser does not render the page until the resource has loaded. Its only value is render. It can be used on <link> (stylesheets and preloads), <script> and <style> elements.

It is mainly used with scripts or fonts that must be available before the first paint to avoid a flash of incorrect content, and to make sure the elements needed for a cross-document view transition are ready. Use it sparingly, because every render-blocking resource delays the moment the user sees the page.

Syntax

<tagname blocking="render">

Values

  • renderRendering of the document is blocked until this resource has been fetched and processed.

Applies To

Example

<script src="critical.js" async blocking="render"></script>
Open in editor

Browser Support

The following information will show you the current browser support for the HTML blocking attribute. Hover over a browser icon to see the version that first introduced support for this HTML attribute.

This attribute is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.