Start your All-Access Pass to unlock this challenge
How you can make a Turbo Frame load lazily?
<turbo-frame id="recently-viewed"> <turbo-stream action="load" href="..." /> </turbo-frame>
This isn't a native feature of frames, but could be added via an event listener on one of the Turbo frame events.
<turbo-frame id="recently-viewed" loading="lazy"></turbo-frame>
<turbo-frame id="recently-viewed" data-loading="lazy"></turbo-frame>