Components
← All components

Lazy Frame

stimeo--lazy-frame

Holds a Turbo frame's load until it comes close, and loads it when the keyboard reaches it too.

  • Core
  • Rails / Turbo

Holds a Turbo frame's load until it comes near the screen, keeping the first render light. How far ahead it starts is up to you, so fast scrolling still arrives in time. Reaching the frame with the keyboard loads it as well, so someone who never scrolls is not left with an empty box. A finished load is remembered, so a page Turbo has cached does not fetch it twice. It can load once and stop, or load again each time you come back. How the wait looks is the frame loading state part's job.

running

Scroll down: the frame below holds its URL and loads only once it comes into view.

Not loaded — scroll down to load

Keyboard

This component has no keyboard interactions of its own.