Adds ability to pause execution of an iframe that is not rendered or scrolled out of view.

Motivation

Suppose a page contains an iframe. It is possible that the embedding document does not wish the iframe to consume CPU or network resources while not actively displayed. Controlling the behavior between two frames requires active communication and co-ordination between the frames. Co-ordination between frames can be difficult because the only way to communicate between frames is via postMessage. In that model each frame (parent and iframe) has to coordinate on a postMessage API to indicate when they should restrict their CPU usage. Doing this as a built in feature eliminates that roadblock.

Documentation

Specification

Public discussion

Status in Chromium

Blink


In developer trial (Behind a flag) (tracking bug) in:

  • Chrome for desktop release 75
  • Chrome for Android release 75

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • No signal
  • Positive

Owner

Search tags

iframe freeze, iframe pause,

Last updated on 2020-11-09