(src: string)
| 205 | } |
| 206 | |
| 207 | function logLazyLCPWarning(src: string) { |
| 208 | console.warn( |
| 209 | formatRuntimeError( |
| 210 | RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING, |
| 211 | `An image with src ${src} is the Largest Contentful Paint (LCP) element ` + |
| 212 | `but was given a "loading" value of "lazy", which can negatively impact ` + |
| 213 | `application loading performance. This warning can be addressed by ` + |
| 214 | `changing the loading value of the LCP image to "eager", or by using the ` + |
| 215 | `NgOptimizedImage directive's prioritization utilities. For more ` + |
| 216 | `information about addressing or disabling this warning, see ` + |
| 217 | `${ERROR_DETAILS_PAGE_BASE_URL}/NG0913`, |
| 218 | ), |
| 219 | ); |
| 220 | } |
| 221 | |
| 222 | function logOversizedImageWarning(src: string) { |
| 223 | console.warn( |
no test coverage detected
searching dependent graphs…