← Back to release summary

IFrame execution/freezing feature policy

Category
Performance
Type
New or changed feature
Status
In developer trial (Behind a flag) (Chrome 75)
Intent stage
Start prototyping

Summary

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.

Standards & signals

Docs: https://github.com/dtapuska/iframe-freeze

Explainers: https://github.com/dtapuska/iframe-freeze

View on chromestatus.com