mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
With this commit, the NgOptimizedImage directive will throw a runtime error if it detects that one of the density descriptors in rawSrcset is higher than 3x. It's generally not recommended to use density descriptors higher than ~2, as it causes image to download at very large sizes on mobile screens (thus slowing down LCP). The density max is set conservatively to 3 in case apps expect users to zoom in. In future commits, we may want to throw even at densities > than 2 and provide a configuration override for the zoom case. PR Close #47082 |
||
|---|---|---|
| .. | ||
| directives | ||
| i18n | ||
| location | ||
| pipes | ||
| common.ts | ||
| common_module.ts | ||
| cookie.ts | ||
| dom_adapter.ts | ||
| dom_tokens.ts | ||
| errors.ts | ||
| platform_id.ts | ||
| private_export.ts | ||
| version.ts | ||
| viewport_scroller.ts | ||
| xhr.ts | ||