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
| Limit | Value | When it is exceeded |
|---|---|---|
| Time per page | 250 ms | The shopper gets the platform's busy page (HTTP 503) |
| Output per page | 2 MiB of HTML | The render is stopped; the shopper gets the error page |
| Renders in flight | Twice the server's CPUs | Further requests get the busy page until a slot frees |
| Nesting in the data | 32 levels | Never 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:
| Extension | Served as |
|---|---|
.css | text/css |
.js | text/javascript |
.png | image/png |
.jpg, .jpeg | image/jpeg |
.webp | image/webp |
.avif | image/avif |
.ico | image/x-icon |
.woff2 | font/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
| Response | Cached for |
|---|---|
| A rendered page | 60 seconds |
| A theme asset | One year, immutable |
robots.txt, sitemap.xml | One hour |
| Any platform error or busy page | Never |