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

Start free trial

Get Media Status

litespeed/get-media-status reports whether lazy loading is active for images and iframes, what placeholder is in use, and how many exclusions are configured.

It is the diagnostic when images do not appear.

At a glance

Abilitylitespeed/get-media-status
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › Images & Lazy Load
RequiresLiteSpeed Cache, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The usual cause of missing images on a LiteSpeed site is lazy loading combined with a theme that moves images with JavaScript. LiteSpeed replaces the image source with a placeholder and stores the real one in a data attribute; its own script swaps them back when the image scrolls into view.

A theme or slider that clones, moves or re-renders the image element after that point breaks the connection. The element still exists, the real source is still in an attribute, and nothing ever swaps it in.

The symptom is an image that never loads, or loads only after an unrelated interaction. The fix is to exclude that image — by source, by class, or by parent class — rather than to disable lazy loading everywhere.

The exclusion count in the response is a useful signal by itself: a site with many exclusions has a theme that fights lazy loading, and turning it off for that theme may be simpler than maintaining the list.

Input

This ability takes no input.

What comes back

NameTypeWhat it is
imagesobjectWhether image lazy loading is active.
iframesobjectWhether iframe lazy loading is active.
placeholderstringThe placeholder in use.
exclusionsobjectHow many exclusions are configured, by list.
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:

Some images on the homepage never load — what is going on?

It resolves to one call:

{
  "ability": "litespeed/get-media-status",
  "parameters": {}
}

Worth knowing

  • Missing images are usually lazy loading plus a theme that moves elements with JavaScript.
  • Exclude the image rather than disabling lazy loading site-wide.
  • A large exclusion count suggests the theme and lazy loading do not get on.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading