Skip to content

Reference

Limits & Quotas

The limits every theme runs under. They are the same for every store and every theme, and they are not configurable per theme: a theme that needs more is a theme doing too much.

Rendering

LimitValueWhen it is exceeded
Time per page250 msThe shopper gets the platform's busy page (HTTP 503)
Output per page2 MiB of HTMLThe render is stopped; the shopper gets the error page
Renders in flightTwice the server's CPUsFurther requests get the busy page until a slot frees
Nesting in the data32 levelsNever reached by platform data; listed for completeness

A first render of a page is typically a few milliseconds; a repeat render, well under one. If your page is anywhere near 250 ms, something in a loop is doing far more work than it looks — see Security Model for why the time limit is the softer of the three.

Theme files

A theme is checked in full when it is loaded, and refused whole — with the file and line — if any of these fail:

Rule
manifest.json has code, name, a MAJOR.MINOR.PATCH version, and engine: 1
manifest.json has no fields beyond those and extends
name is a non-blank string, or { "ar", "en" } with both filled
A setting's placeholder matches it: text, textarea or url only; {ar, en} if localized
A setting's group names one of the schema's groups, and only global settings have one
code is 2–63 lowercase letters, digits and hyphens
locales/ar.json and locales/en.json both exist and hold exactly the same keys
templates/layout.jinja places {% wajha_head %} and {% wajha_body %}, outside any comment
Every .jinja file under templates/ compiles
No template uses a banned tag or filter
Every {% include %} and {% extends %} names a file in the theme

Upload size limits arrive with theme uploads.

Assets

Files in assets/ are served at {{ theme.asset_base }}/<path>. Only these types are served:

ExtensionServed as
.csstext/css
.jstext/javascript
.pngimage/png
.jpg, .jpegimage/jpeg
.webpimage/webp
.avifimage/avif
.icoimage/x-icon
.woff2font/woff2

SVG is not served. An SVG file can carry script, and served from the store's own address it would run with the store's privileges. Use PNG or WebP for images, or inline an icon's paths in a template.

Asset URLs change whenever any file in your theme changes, so they are served with Cache-Control: immutable and a year's lifetime. You never need to add a version query string.

Pages

ResponseCached for
A rendered page60 seconds
A theme assetOne year, immutable
robots.txt, sitemap.xmlOne hour
Any platform error or busy pageNever