Skip to content

Commit

Permalink
perf(core): ensure image pre load event is called once
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Feb 18, 2024
1 parent 2f87c35 commit fe461af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lazyLoad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function loadImage(
updateImageSrcset(image)
updateImageSrc(image)
onImageLoad?.(image)
})
}, { once: true })
}

export function createPlaceholderFromHash(
Expand Down

0 comments on commit fe461af

Please sign in to comment.