Features/Performance

Sections lazy load

Mark a section as lazy so it is only rendered when the visitor scrolls near it.

Any <section> element has a Lazy Load switch. A lazy section is first rendered as an empty 10 px placeholder and its content is built only when it comes into view, which makes long pages faster to start. When a loaded lazy section leaves the viewport it is swapped back to a placeholder of the same height, so memory stays low on very long pages. Bots that get the prerendered page always see the full content.

How it works

  • Placeholder: <section class=dh-lazy data-id=... style='height:10px;opacity:0'>.
  • When rendered, transform runs for the new content.

When to use it

  • Heavy sliders or galleries far down a landing page
  • Long pages with many sections

Limitations

  • Only for section elements
  • Content of a lazy section is not in the DOM until scrolled to (anchors to it or scripts that query it must wait)
  • Unloads again when scrolled away, so state inside it (for example a form being filled) can be lost

Availability

  • Works in Designer.
  • Included in every plan.

How to use it.

  1. Select a section in the Designer
  2. In the element settings, set Lazy Load to Yes
  3. Publish

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.