Skip to content

Commit

Permalink
Update Critical-CH restart time in navigation params
Browse files Browse the repository at this point in the history
This is needed for w3c/navigation-timing#188.
  • Loading branch information
arichiv committed May 19, 2023
1 parent 96a82df commit 8ec8e17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.bs
Expand Up @@ -294,10 +294,19 @@ At [=populating a session history entry=], in step 6 after substep 7 insert the
<li>If |shouldReloadForCriticalClientHints| then:
<ol>
<li>Set <var>navigable</var>'s [=has reloaded for Critical-CH=] to `true`.
<li>Set <var>navigationParams</var>'s [=critical ch restart time=] to be the [=current high resolution time=].
<li><a spec=HTML>reload</a> <var>navigable</var>.
</ol>
</ol>

At [=navigation params=], append the following:
<dl>
<dt><dfn>critical ch restart time</dfn></dt>
<dd>a {{DOMHighResTimeStamp}} used for <span data-x="create the navigation timing
entry">creating the navigation timing entry</span> for the new <code>Document</code></dd>
</dl>


Service Worker initialization {#service-worker-init}
-----------
At <a spec=HTML>set up a worker environment settings object</a>,
Expand Down

0 comments on commit 8ec8e17

Please sign in to comment.