Releases: seedofjoy/bazooka
Releases · seedofjoy/bazooka
`data-baz-async="viewport"`
- ➕ [added] support for async bazFunc calls via
IntersectionObserver
. In browsers withoutIntersectionObserver
support, falls back to the equivalent ofsetTimeout(bazFunc, 1, node)
. Check out _async example
/* (old) sync call */
<div data-bazooka="init-time">
will be called on `Bazooka.refresh()` / `Bazooka.watch()`
</div>
/* (new) async call */
<div data-bazooka="init-time" data-baz-async="viewport">
will be called when in viewport
</div>