Consider making `id` optional.
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-nestingstrategy should suffice to opt-in for container-timing (nesting implies this is, itself, a container). elementtiming="id"could still be used to assign an explicitidelementis 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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