Purpose#
This page is an overview/README for the JavaScript assets folder: Assets/js/.The theme’s main boot file (theme.js).
Vendor libraries shipped with the theme (typically minified).
It is the primary place where the theme’s global client-side behavior is loaded.What you’ll find in Assets/js/#
Theme script#
Detailed documentation: NoirDocs/4. Assets/JavaScript/theme.js.md.
Vendor scripts#
Examples in this theme include Swiper, Leaflet (and marker cluster), Lightgallery, Nouislider, Axios, Alpine.Treat vendor/minified files as read-only.
Prefer wrapping/extending behavior in theme.js or component/reusable JS rather than modifying vendor sources.
Where to put new JavaScript#
Component-specific behavior: Components/<Name>/Default.js
Reusable-specific behavior: Reusables/<Name>/Default.js
Theme-wide behavior and cross-cutting utilities: Assets/js/theme.js
If the requirement is store-specific custom JavaScript (without changing the theme code), it can be added from the admin area:Content → Customization → Layout → JS tab
Modified at 2026-04-14 13:18:56