Skip to content

Commit

Permalink
fix(core): error code in image performance warning (#52727)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cexbrayat authored and jessicajaniuk committed Nov 9, 2023
1 parent 7d6752a commit 2cea80c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/image_performance_warning.ts
Expand Up @@ -155,12 +155,12 @@ function logLazyLCPWarning(src: string) {
console.warn(formatRuntimeError(
RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING,
`An image with src ${src} is the Largest Contentful Paint (LCP) element ` +
`but was given a "loading" value of "lazy", which can negatively impact` +
`but was given a "loading" value of "lazy", which can negatively impact ` +
`application loading performance. This warning can be addressed by ` +
`changing the loading value of the LCP image to "eager", or by using the ` +
`NgOptimizedImage directive's prioritization utilities. For more ` +
`information about addressing or disabling this warning, see ` +
`https://angular.io/errors/NG2965`));
`https://angular.io/errors/NG0913`));
}

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

0 comments on commit 2cea80c

Please sign in to comment.