import{S as x,i as D,s as M,l as z,o as S,d as b,u as U,q as T,r as N,t as y,h,f as _,G as j,I as E,C as V,g,y as O,m as v,j as I,k as L}from"./index-df681c7c.js";import{g as q,a as H}from"./spread-8a54911c.js";import{p as B,M as G,T as R,S as Y}from"./collect-stories-a6a786e2.js";import{w as F,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