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

fix imagesrcset bug #133

Merged
merged 4 commits into from
Jun 18, 2024
Merged

fix imagesrcset bug #133

merged 4 commits into from
Jun 18, 2024

Conversation

kara
Copy link
Contributor

@kara kara commented Jun 18, 2024

28% of Angular 17 apps using the image directive have been missing performance data due to errors. Looking into it, it seems that link.imagesrcset is undefined in some of these cases. Grabbing the attribute instead of the prop with link.getAttribute fixes the issue.

See example failure: https://www.webpagetest.org/result/240618_AiDc8Y_E9D/3/details/
See example fix: https://www.webpagetest.org/result/240618_AiDcZ3_E78/2/details/


Test websites:

kara and others added 2 commits June 18, 2024 12:44
28% of Angular 17 apps using the image directive have been
missing performance data due to errors. Looking into it,
it seems that `link.imagesrcset` is undefined in some of
these cases. Grabbing the attribute instead of the prop with
`link.getAttribute` fixes the issue.

See example failure: https://www.webpagetest.org/result/240618_AiDc8Y_E9D/3/details/
See example fix: https://www.webpagetest.org/result/240618_AiDcZ3_E78/2/details/
dist/performance.js Outdated Show resolved Hide resolved
Co-authored-by: Barry Pollard <barrypollard@google.com>
dist/performance.js Outdated Show resolved Hide resolved
Co-authored-by: Barry Pollard <barrypollard@google.com>
Copy link

Custom metrics for https://almanac.httparchive.org/en/2022/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240618_G6_6
Changed custom metrics values:

{}
Custom metrics for https://exploreti.com/

WPT test run results: http://webpagetest.httparchive.org/results.php?test=240618_DQ_7
Changed custom metrics values:

{}

@tunetheweb tunetheweb merged commit b498ac1 into HTTPArchive:main Jun 18, 2024
2 checks passed
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