Skip to main content
If Autorender Native isn’t behaving as expected, turn on debug logging first. It names most problems directly in the browser console, so you rarely have to guess.

Turn on debug logging first

Add debug=1 to the script URL and reload with the console open.
Production is silent except for one always-on fatal error when ws is missing. With debug=1 the runtime logs the specific reason it skipped, resized, or downgraded an element — each message names the element it applies to. Turn it off again before you ship.

Common problems

An image reports zero size

If an element measures zero width under its normal layout — often inside a container the runtime can’t measure directly — the console shows:
The runtime recovers on its own after 3 consecutive zero-size measurements, switching to the compatibility path that derives width from an ancestor. To force that path from the first load, set data-ar-measure="compat" on the element. In compat mode the runtime sizes on width alone.
Compat is not a recovery for an element carrying a W/H size alias. Compat reports a height of 0, so an alias that needs a height waits forever — the element stays in a waiting state and never loads, and it fires no ar:error. The switching to compatibility measurement line in the debug log is the only signal. Give alias elements a reliable box, or use explicit token values instead of aliases.

A hero image is still slow (LCP)

data-ar-eager skips lazy loading, but it does not fix LCP. The browser’s preload scanner can’t see a data-ar-src at parse time, so with debug=1 you’ll see:
For the single largest hero image, add a <link rel="preload"> to a hand-built delivery URL so the browser starts the fetch during HTML parsing — a real src would be fetched in full and then replaced. See the hero pattern.

Still stuck?

If you’ve worked through the checks above and images still don’t load as expected, contact Autorender support. Include your workspace ID, the full script URL (with debug=1), a sample element’s HTML, and the exact console output.

Next steps

Configuration

The script-URL parameters behind most of these messages.

Attributes

Every data-ar-* attribute, including intrinsic and measure.

Events and classes

The ar-error class and ar:error event these checks refer to.

Introduction

The correct baseline setup to compare against.