Edit Theme JavaScript
Advanced
Last updated
Was this helpful?
Advanced
Last updated
Was this helpful?
We do not support code customizations. This guide offers a basic reference for developers. Always test code changes on unpublished theme copies. For assistance, we recommend reaching out to a .
Stiletto includes a single, editable JavaScript file (assets/theme.js
) for custom development that can be enabled in the snippets/theme-globals.liquid
file.
Switching to the unminified theme.js
disables code splitting, which bundles the theme JavaScript into multiple files used for lazy-loading and improved site performance. We do not recommend editing these files directly.
The theme.js
file, when enabled, lets you edit a single JavaScript file, instead of many files, and includes comments from our developers to help you along.
Related links