import{S as x,i as D,s as M,u as z,l as S,b,v as U,w as T,x as E,t as y,a as h,f as _,D as N,E as L,C as V,c as g,p as O,m as v,d as w,e as j}from"./index-2c1648fc.js";import{g as H,a as q}from"./spread-8a54911c.js";import{p as B,M as R,T as Y,S as F}from"./collect-stories-640c7888.js";import{w as G,a as J}from"./withParams-47e2ab71.js";const K=`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. \`\`\`svelte