IFrame execution/freezing feature policy

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

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


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 public signals
  • No public signals
  • No public signals
  • Positive

Owner

Last updated on 2019-05-01