spz-intersection-observer-polyfill

When to use

spz-intersection-observer-polyfill installs the IntersectionObserver API polyfill for browsers that do not support it natively. This is a service component — it has no visible UI and requires no configuration.

Usage

Include the script tag on the page. The polyfill is automatically installed when the component loads:

<script async custom-element="spz-intersection-observer-polyfill"
  src="https://cdn.shoplazza.com/cuttlefish/v0/spz-intersection-observer-polyfill-0.1.js">
</script>

Notes

  • This is a service extension, not a visual component. It has no attributes, actions, events, or layout.
  • The polyfill is only installed when the browser does not have native IntersectionObserver support.
  • Other SPZ components that rely on IntersectionObserver will benefit automatically.