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.
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 withlink.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: