## Performance & Troubleshooting

Product: Lazyline – Innovative Lazy-Load & LQIP WordPress Plugin
URL: https://hub.jkdevstudio.com/docs/lazyline/features/performance-troubleshooting
Updated: 2026-04-05
Summary: Recommended settings for Core Web Vitals, LCP optimization tips, common lazy loading issues, and how to diagnose placeholder rendering problems.

## Recommended Settings for Core Web Vitals

### LCP (Largest Contentful Paint)

The single most important thing: **exclude your hero or banner image from lazy loading**.

- Add the hero image ID or class to **Ignore IDs** or **Ignore Classes** in Preloader &amp; Placeholders settings
- Set **Viewport Threshold** to `200-400px` - too high preloads too many images and wastes bandwidth
- Use **Native Lazy Loading** if you don't need preloaders or LQIP and want the lowest overhead

<div data-callout="tip">

In Chrome DevTools &gt; Lighthouse, the LCP element is identified for you. Copy its `id` or `class` and add it to the ignore list.

</div>

### CLS (Cumulative Layout Shift)

Lazyline PRO automatically sets `aspect-ratio` on image wrappers based on the `width` and `height` attributes in the HTML.

- Make sure your images have `width` and `height` attributes - WordPress adds these by default for media library images
- LQIP placeholders fill the reserved space before the real image loads, preventing layout jumps
- If you still see CLS, check that your theme isn't overriding `width`/`height` with CSS `width: 100%` without a corresponding `height: auto`

### Which LQIP Type Should I Use?

<table style="min-width: 125px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Type</p></th><th colspan="1" rowspan="1"><p>File Size</p></th><th colspan="1" rowspan="1"><p>Generation Speed</p></th><th colspan="1" rowspan="1"><p>Visual Quality</p></th><th colspan="1" rowspan="1"><p>Best For</p></th></tr><tr><td colspan="1" rowspan="1"><p>Thumbnail</p></td><td colspan="1" rowspan="1"><p>Small</p></td><td colspan="1" rowspan="1"><p>Fast</p></td><td colspan="1" rowspan="1"><p>High</p></td><td colspan="1" rowspan="1"><p>General use</p></td></tr><tr><td colspan="1" rowspan="1"><p>Palette</p></td><td colspan="1" rowspan="1"><p>Zero (metadata only)</p></td><td colspan="1" rowspan="1"><p>Fast</p></td><td colspan="1" rowspan="1"><p>Low</p></td><td colspan="1" rowspan="1"><p>Minimalist sites</p></td></tr><tr><td colspan="1" rowspan="1"><p>Pixelart</p></td><td colspan="1" rowspan="1"><p>Small</p></td><td colspan="1" rowspan="1"><p>Fast</p></td><td colspan="1" rowspan="1"><p>Medium</p></td><td colspan="1" rowspan="1"><p>Creative/artistic sites</p></td></tr><tr><td colspan="1" rowspan="1"><p>Primitives</p></td><td colspan="1" rowspan="1"><p>Tiny (SVG)</p></td><td colspan="1" rowspan="1"><p>Slow (browser)</p></td><td colspan="1" rowspan="1"><p>High</p></td><td colspan="1" rowspan="1"><p>Photography/portfolio</p></td></tr></tbody></table>

---

## Troubleshooting

### Images not lazy loading

- Check that the element type is enabled in **Lazy Load Elements**
- Check that the post type is enabled
- Check **Ignore IDs** and **Ignore Classes** for accidental exclusions
- Open browser DevTools and inspect the image - look for `data-src`. If present, lazy loading is applied but not triggering. Check the Console tab for JavaScript errors.

<div data-callout="tip">

The most common cause of lazy loading not triggering is a JavaScript conflict with another plugin. Open the Console and check for errors before anything else.

</div>

### LQIP not showing

- Confirm LQIP is enabled and the correct type is selected as **Active**
- Check the Dashboard LQIP table - if the active type shows "Not analyzed" or "Not generated", run the batch from **LQIP Settings &gt; Batch Generation**
- For **Primitives**: keep the browser tab open during generation - it runs client-side in your browser

### Layout shift on images

- Ensure images have `width` and `height` attributes in your theme HTML
- The plugin adds `aspect-ratio` to wrappers automatically but needs the original dimensions to calculate it

### Primitives not displaying on frontend

- If you generated Primitives before v3.0, regenerate them - an SVG rendering fix was applied in that release
- Confirm the LQIP type is set to **Primitives** in settings and saved