Skip to content

Commit cc68b0e

Browse files
cexbrayatthePunderWoman
authored andcommitted
fix(core): error code in image performance warning (#52727)
The warnings link to https://angular.io/errors/NG2965 which is a 404 The proper error page is https://angular.io/errors/NG0913 PR Close #52727
1 parent b1cc092 commit cc68b0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/image_performance_warning.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ function logLazyLCPWarning(src: string) {
155155
console.warn(formatRuntimeError(
156156
RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING,
157157
`An image with src ${src} is the Largest Contentful Paint (LCP) element ` +
158-
`but was given a "loading" value of "lazy", which can negatively impact` +
158+
`but was given a "loading" value of "lazy", which can negatively impact ` +
159159
`application loading performance. This warning can be addressed by ` +
160160
`changing the loading value of the LCP image to "eager", or by using the ` +
161161
`NgOptimizedImage directive's prioritization utilities. For more ` +
162162
`information about addressing or disabling this warning, see ` +
163-
`https://angular.io/errors/NG2965`));
163+
`https://angular.io/errors/NG0913`));
164164
}
165165

166166
function logOversizedImageWarning(src: string) {
@@ -169,5 +169,5 @@ function logOversizedImageWarning(src: string) {
169169
`An image with src ${src} has intrinsic file dimensions much larger than its ` +
170170
`rendered size. This can negatively impact application loading performance. ` +
171171
`For more information about addressing or disabling this warning, see ` +
172-
`https://angular.io/errors/NG2965`));
172+
`https://angular.io/errors/NG0913`));
173173
}

0 commit comments

Comments
 (0)