Skip to content

Commit

Permalink
fix: decrease debounce resize timer
Browse files Browse the repository at this point in the history
  • Loading branch information
felixranesberger authored Oct 19, 2023
1 parent 54a1d37 commit 5792cd3
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 @@ -201,7 +201,7 @@ function updateSizesAttribute(

if (options?.updateOnResize) {
if (!resizeElementStore.has(element)) {
const debounceResize = debounce(() => updateSizesAttribute(element), 500)
const debounceResize = debounce(() => updateSizesAttribute(element), 200)
const observerInstance = new ResizeObserver(debounceResize)
resizeElementStore.set(element, observerInstance)
observerInstance.observe(element)
Expand Down

0 comments on commit 5792cd3

Please sign in to comment.