MCPcopy
hub / github.com/angular/angular / logOversizedImageWarning

Function logOversizedImageWarning

packages/core/src/image_performance_warning.ts:222–232  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

220}
221
222function logOversizedImageWarning(src: string) {
223 console.warn(
224 formatRuntimeError(
225 RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING,
226 `An image with src ${src} has intrinsic file dimensions much larger than its ` +
227 `rendered size. This can negatively impact application loading performance. ` +
228 `For more information about addressing or disabling this warning, see ` +
229 `${ERROR_DETAILS_PAGE_BASE_URL}/NG0913`,
230 ),
231 );
232}

Callers 1

scanImagesMethod · 0.85

Calls 2

formatRuntimeErrorFunction · 0.90
warnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…