WICG / WICG/container-timing

Consider making `id` optional.

Open
#21 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
72
Forks
10
Avg merge
9d 15h
Merged PRs (30d)
3

Description

Element timing entries returns both an element and an id for its timings.

LCP timing entries also have id, but typically juts "".

Container Timing right now, same as element timing, uses "id assignment" as the opt-in mechanism. But often this just leads to generating random identifiers for many use cases, or name clashes.

Consider an alternative:

  • Perhaps any containertiming-nesting strategy should suffice to opt-in for container-timing (nesting implies this is, itself, a container).
  • elementtiming="id" could still be used to assign an explicit id
  • element is returned to help identify the container, but might be null.
    • We can solve for that case by including a querySelector value (this would be a separate feature request for all element timings, a common request), (or the developer can assign an id)
  • This also removes the need to have "default" strategies for nesting

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Container Timing behavior described in the issue, focusing on containertiming-nesting, elementtiming="id", and the returned element and id fields. Done means reaching an agreed specification for optional ids, opt-in behavior, null elements, and nesting strategies.

Written by the indexing model from the issue text.

Assessment

Domain
performance, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.