30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Update Placeholder Settings

litespeed/update-placeholder-settings changes the placeholder shown while a lazy-loaded image arrives: whether a responsive placeholder is used, its colour, and an inline SVG.

LQIP — the low-quality preview generated from the real image — is a QUIC.cloud service and is not part of this suite.

At a glance

Abilitylitespeed/update-placeholder-settings
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › Images & Lazy Load
RequiresLiteSpeed Cache, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Without a placeholder, a lazy-loaded image occupies no space until it arrives, and everything below it jumps when it does. That layout shift is both unpleasant and directly measured by page-experience scoring.

A responsive placeholder is an empty image of the right dimensions. It reserves the space, so nothing moves. This is the setting that matters, and it is usually enough on its own.

The colour and the inline SVG are refinements: a placeholder tinted to match the design reads as deliberate rather than as a gap, and an SVG can carry a shape or a logo.

LQIP goes further — a blurred thumbnail of the actual image, so the layout is reserved and the content is hinted. It requires generating a preview per image, which is done by QUIC.cloud, which costs credits. No ability in this suite spends credits, so the toggle is not exposed.

The write is a patch, not a replacement. Send one key and one key changes; everything else in the area is left alone. The response names the keys that actually moved, so a payload that matched the existing values comes back with an empty list rather than a misleading success.

Input

NameTypeRequiredWhat it is
settingsobjectYesA map of setting key to new value. Keys outside this area are refused, and the refusal lists what the area accepts.

What comes back

NameTypeWhat it is
updatedarrayThe keys that actually changed. An empty array means every value you sent was already set.
settingsarrayEvery setting in the area after the write, in the read shape.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Use a grey placeholder while images load.

It resolves to one call:

{
  "ability": "litespeed/update-placeholder-settings",
  "parameters": {
    "settings": { "media-placeholder_resp": true, "media-placeholder_resp_color": "#e5e5e5" }
  }
}

Worth knowing

  • The responsive placeholder is what stops the page jumping. Have it on.
  • LQIP is a QUIC.cloud service and is deliberately not exposed here.
  • A tinted placeholder reads better than a blank one.
  • Purge after changing.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading