v0.4.5
New
- throttle leading options, closes #113
You can also pass a
leading
option to trigger the callback the first time when the visibility changes without waiting for the throttle delay.
I can either bevisible
,hidden
orboth
.
<div v-observe-visibility="{
callback: visibilityChanged,
throttle: 300,
throttleOptions: {
leading: 'visible',
},
}">
Fixed
- SSR: Fix the rendering issue with ssr load #148