Permissions-Policy: execution-while-out-of-viewport

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The HTTP Permissions-Policy header execution-while-out-of-viewport directive controls whether tasks should execute in frames while they're outside of the visible viewport.

Specifically, where a defined policy blocks execution of task rendering while content is not in the visible viewport, while that condition is true, the content will be put in the frozen state as defined in the Page Lifecycle API. This stops execution of freezable tasks such as JavaScript timers (e.g. setTimeout()) and fetch() callbacks.


Permissions-Policy: execution-while-out-of-viewport=<allowlist>;

A list of origins for which permission is granted to use the feature. See Permissions-Policy > Syntax for more details.

Default policy

The default allowlist for execution-while-out-of-viewport is *.


Page Lifecycle
# feature-policies

Browser compatibility

BCD tables only load in the browser

See also