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

Start free trial

Update Optimisation Exclusions

litespeed/update-optimization-exclusions changes one optimisation exclusion list: add to it, remove from it, or replace it.

This is the correct fix when optimisation breaks one script.

At a glance

Abilitylitespeed/update-optimization-exclusions
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › CSS, JS & HTML
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

Hold the script back, keep the feature

The instinctive response to “the slider stopped working after I turned on defer” is to turn defer off. That fixes the slider and gives up the benefit on every other script on the site, permanently, because nobody goes back and tries again.

Excluding the one file keeps everything else deferred. The cost is one script’s worth of render blocking rather than all of them.

The list types map to the stages: css skips CSS combining, js skips JS combining, js-defer skips deferring, js-delay includes a script in delaying, uri skips optimisation entirely for a path, and role and guest-js scope by who is asking.

Matching is on the file path as it appears in the page source, so a partial match — the plugin’s directory name, the script’s filename — is usually the right entry. Too specific a match stops working when the plugin updates and its version string changes.

The mode means one entry can be added without reading and rewriting the list.

Input

NameTypeRequiredWhat it is
typestringYescss, js, js-defer, js-delay, uri, role or guest-js.
valuesarrayYesThe entries to add, remove or set.
modestringNo — defaults to addadd, remove or replace.

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:

Stop deferring the slider script.

It resolves to one call:

{
  "ability": "litespeed/update-optimization-exclusions",
  "parameters": {
    "type": "js-defer",
    "values": ["slider-pro/assets/js"],
    "mode": "add"
  }
}

Worth knowing

  • Match on a stable part of the path — a plugin directory rather than a versioned filename.
  • Exclusion from one stage is not exclusion from the others.
  • Purge generated assets afterwards.
  • Use add rather than replace unless you mean to set the whole list.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading