Skip to content

Commit f25653e

Browse files
cexbrayatthePunderWoman
authored andcommitted
fix(common): typo in NgOptimizedImage warning (#56756)
A space is missing in the warning message for `TOO_MANY_PRIORITY_ATTRIBUTES`. PR Close #56756
1 parent ceaaa98 commit f25653e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,13 +1270,13 @@ function assertNoLoaderParamsWithoutLoader(dir: NgOptimizedImage, imageLoader: I
12701270
*/
12711271
function assetPriorityCountBelowThreshold() {
12721272
if (IMGS_WITH_PRIORITY_ATTR_COUNT === 0) {
1273-
document.addEventListener('DOMContentLoaded', (event) => {
1273+
document.addEventListener('DOMContentLoaded', () => {
12741274
if (IMGS_WITH_PRIORITY_ATTR_COUNT > PRIORITY_COUNT_THRESHOLD) {
12751275
console.warn(
12761276
formatRuntimeError(
12771277
RuntimeErrorCode.TOO_MANY_PRIORITY_ATTRIBUTES,
12781278
`NgOptimizedImage: The "priority" attribute is set to true more than ${PRIORITY_COUNT_THRESHOLD} times (${IMGS_WITH_PRIORITY_ATTR_COUNT} times). ` +
1279-
`Marking too many images as "high" priority can hurt your application's LCP (https://web.dev/lcp).` +
1279+
`Marking too many images as "high" priority can hurt your application's LCP (https://web.dev/lcp). ` +
12801280
`"Priority" should only be set on the image expected to be the page's LCP element.`,
12811281
),
12821282
);

0 commit comments

Comments
 (0)