import{S as U,i as T,s as N,q as L,w as P,a as b,u as q,r as H,v as B,b as h,t as v,d as _,o as R,f as Y,p as S,j as y,D,m as g,k as A,l as O,n as w,e as F}from"./index-25af778d.js";import{p as G,M as J,T as K,S as Q}from"./collect-stories-cce06d4a.js";import{w as x,b as M}from"./withParams-90715500.js";const W=`Wrap components or other HTML elements to determine if they are visible on the page using the [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). This is really useful for lazy loading elements, especially expensive media files or components that fetch lots of data. You can also use it trigger animations or play media once a reader scrolls a component into view. > **Pro tip:** Don't use this for content that's "above the fold" at the top of the page. That'll just slow down the first load of important visible content. \`\`\`html