#1317: Other Spec Review: JS Self Profiling with lazy mode (`Document-Policy: js-profiling-mode=lazy|eager`)

Visit on Github

Opened Dec 3, 2026

Specification

https://github.com/WICG/js-self-profiling/pull/87, https://wicg.github.io/js-self-profiling/#js-profiling-mode

Explainer

https://github.com/WICG/js-self-profiling/issues/86

Links

  • Previous early design review, if any: https://github.com/w3ctag/design-reviews/issues/366
  • An introduction to the feature, aimed at unfamiliar audiences: https://github.com/WICG/js-self-profiling/issues/86 <!-- Can be the specification's or explainer's introduction, or another section. -->
  • A description of the problems that end-users were facing before this proposal: https://github.com/WICG/js-self-profiling/issues/86 <!-- See https://w3ctag.github.io/explainer-explainer/#end-user-need -->
  • Alternatives considered: none <!-- See https://w3ctag.github.io/explainer-explainer/#alternatives -->
  • Examples of how to use the proposal to solve the end-users' problems: https:// <!-- See https://w3ctag.github.io/explainer-explainer/#describe-proposal -->
  • What do the end-users experience with this proposal: https:// <!-- See https://w3ctag.github.io/explainer-explainer/#describe-proposal -->
  • User research you did to validate the problem and/or design, if any: N/A, validated with partner developers (Sentry, Datadog, MS) via an upcoming Chromium Origin Trial rather than formal user research.
  • Web Platform Tests: https://wpt.fyi/results/js-self-profiling/js-profiling-mode <!-- Or other tests if this is not a web platform feature. -->

The specification

Where and by whom is the work is being done?

  • GitHub repo:https://github.com/WICG/js-self-profiling
  • Primary contacts:
    • Thomas BERTET(@thomasbertet), Datadog, Origin Trial lead
    • Andrew Comminos (@acomminos), Meta, base JS Self-Profiling API editor
  • Organization/project driving the specification: Datadog
  • This work is being funded by: Datadog
  • Primary standards group developing this feature: W3C Web Performance Community Group / WICG
  • Group intended to standardize this work: W3C Web Performance Working Group <!-- if different from the current group -->
  • Incubation and standards groups that have discussed the design:

Feedback so far

  • Multi-stakeholder feedback:
    • Chromium comments: Positive — driving the implementation and Origin Trial. ChromeStatus: https://chromestatus.com/feature/5201297767792640
    • Mozilla comments: No signal yet. The base JS Self-Profiling API is not implemented in Gecko; no standards position has been requested for the js-profiling-mode extension.
    • WebKit comments: No signal yet. The base JS Self-Profiling API is not implemented in WebKit; no standards position has been requested for the js-profiling-mode extension. Developer/implementer feedback: Interest from RUM/self-profiling consumers — Excel Online (Microsoft), Sentry and Datadog — who plan to evaluate the feature via the Chromium Origin Trial.
  • Major unresolved issues with or opposition to this specification: None.
  • Status/issue trackers for implementations: https://chromestatus.com/feature/5108831124324352
  • Spec PR: https://github.com/WICG/js-self-profiling/pull/87

You should also know that...

This is an incremental extension of an already-reviewed, shipped API.

The base JS Self-Profiling API went through TAG review in https://github.com/w3ctag/design-reviews/issues/366 and ships in Chromium. This proposal adds a new way for the site's owner to decide when to pay the overhead cost using a new Document-Policy header value, while keeping the feature retro-compatible.

<!-- Content below this is maintained by @w3c-tag-bot -->

Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1317

Discussions