Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inclujde PaintMixin in PerformanceElementTiming #81

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Nov 13, 2024

Expose paintTiming and presentationTime in PerformanceElementTiming through PaintMixin


Preview | Diff

noamr added 2 commits November 4, 2024 17:49
Given w3c/paint-timing#62, we now expose paint timestamps as part
of PaintTimingMixin.

This PR extends PerformanceElementTiming to include that mixin and propagates
the right calls.
@noamr
Copy link
Contributor Author

noamr commented Nov 13, 2024

@clelland can you review please?

@noamr noamr changed the title Support PaintMixin Inclujde PaintMixin in PerformanceElementTiming Nov 13, 2024
Due to the difficulty in obtaining this information today, we choose not to expose the display timestamp for images that fail the <a>timing allow check</a>.
For clarity, here is a code snippet using the PaintTiming API:
The {{renderTime}} (display timestamp) is indeed newly exposed information. Implementations are advised to coarsen that timestamp further,
o a 4 milliseconds resolution at least, to avoid exposing differences in decoding time between cross-origin images. Note that other checks,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo at the beginning of the line should be "to a 4 millisecond resolution..."

@noamr
Copy link
Contributor Author

noamr commented Dec 16, 2024

@clelland can you merge please? I don't have write access to this repo.

@clelland clelland merged commit 5e609be into w3c:main Dec 16, 2024
1 check passed
@clelland
Copy link
Collaborator

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants