Currently the Page Visibility API enables querying the current visibility state of the page and adding an event handler which will be executed when the visibility state changes in the future. However, this creates a gap for developers that are interested in knowing the full visibility states of the page, from the beginning of the page load: the initial visibility state and any very early visibility state changes that occur before JavaScript has had a chance to query the visibility state or register an event handler.
Risks
Official signals: none yet.