Lazy Loading and Speed
Choose a loading placeholder, and keep a large gallery fast, especially at the top of a page.
HappyDivi Gallery lazy loading keeps a long gallery light on first load.
With lazy loading on, an image downloads only when it is about to scroll into view. A long gallery then loads far less up front.
Choose a Placeholder#
Open Content → Lazy Loading. Lazy Load Images turns it on or off, and Loading Placeholder sets what shows while an image loads.
| Placeholder | What the visitor sees |
|---|---|
| Blur-Up | A tiny blurred preview that sharpens |
| Skeleton | A pulsing grey box |
| None | Nothing until the image has loaded |
The Lazy Loading settings.
Gallery at the top of the page?
Turn lazy loading off for it. The first images a visitor sees should load straight away, because waiting for them delays your Largest Contentful Paint score.
Keep It Fast#
- Use Image Size Large, not Full Size, unless the cells are really that big.
- Add pagination to a long gallery.
- Keep Number of Items to what the page needs.
- If a caching plugin combines scripts, exclude Divi's scripts from that setting.
For more, read why a Divi gallery gets slow and how to fix it.
