fix(common): skip checking whether SVGs are oversized#57966
fix(common): skip checking whether SVGs are oversized#57966arturovt wants to merge 1 commit intoangular:mainfrom
Conversation
8ffb188 to
cc99730
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
@arturovt thanks for the PR, the code looks good 👍 Could you please also add a test to verify the new behavior and avoid regressions?
cc99730 to
6e2ea10
Compare
|
@arturovt thanks for adding tests 👍 It looks like one of them is failing on CI (see Could you please take a look when you get a chance? |
Prior to this commit, the `ImagePerformanceWarning` class was checking all `img` elements in the DOM to determine whether they were oversized after the DOM loading was complete. We should not check SVGs because they are vector-based and can scale infinitely without losing quality. Closes angular#57941
6e2ea10 to
e1850fd
Compare
|
Caretaker note: presubmit is "green", this PR is ready for merge. |
|
This PR was merged into the repository by commit e8b2d5f. The changes were merged into the following branches: main, 18.2.x |
Prior to this commit, the `ImagePerformanceWarning` class was checking all `img` elements in the DOM to determine whether they were oversized after the DOM loading was complete. We should not check SVGs because they are vector-based and can scale infinitely without losing quality. Closes #57941 PR Close #57966
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Prior to this commit, the
ImagePerformanceWarningclass was checking allimgelements in the DOM to determine whether they were oversized after the DOM loading was complete. We should not check SVGs because they are vector-based and can scale infinitely without losing quality.Closes #57941