Visual settings and performance
Presentation choices, progressive JavaScript and honest image budgets.
Keep settings visual
SettingStore is the runtime settings contract. Theme namespaces such as theme.reference may hold harmless visual choices. They must not hold homepage copy, product prices, customer records or SEO truth.
Current installed Theme contracts do not offer a general visual settings schema or an Admin Customizer. Site identity is managed in Site Settings; menus are managed in Navigation. Do not document or build a fictional settings UI.
When an extension reads a visual choice, validate it against a small set and prepare the result before Blade rendering. A missing setting should select a coherent visual default.
Progressive JavaScript
Use small local scripts for presentation only. Navigation and primary content should work without JavaScript. Avoid a second frontend framework, tracking cookies and global state shared with Admin.
Docs uses a local DOM-based outline enhancement. The underlying headings and navigation remain ordinary HTML. Code anchors point at the actual document rather than a separately maintained outline.
Measure the rendered page
Track HTML, CSS, JavaScript and Media bytes, requests, layout shifts and the critical image. Reserve dimensions, avoid oversize assets and reuse locale-neutral Media. Screenshot capture should wait for fonts and images, not arbitrary pauses.
Do not remove meaningful live Theme behavior merely to improve a demonstration score. A static artifact can omit server forms, but must explain its demonstration role. Optional assets should degrade without breaking the reading experience.
The testing guide distinguishes local observations from release qualification.
Conceptual fragments: supply the required package files and register any presenter before use.