diff --git a/app/templates/admin/base.html b/app/templates/admin/base.html index e8077347..871347fe 100644 --- a/app/templates/admin/base.html +++ b/app/templates/admin/base.html @@ -144,35 +144,20 @@ - - - - + {% block chartjs_script %}{% endblock %} - + {% block flatpickr_script %}{% endblock %} - + {% block quill_script %}{% endblock %} - + {% block extra_scripts %}{% endblock %} + + + diff --git a/app/templates/merchant/base.html b/app/templates/merchant/base.html index 17555e5c..88734252 100644 --- a/app/templates/merchant/base.html +++ b/app/templates/merchant/base.html @@ -71,26 +71,11 @@ - - - - + {% block extra_scripts %}{% endblock %} + + + diff --git a/app/templates/store/base.html b/app/templates/store/base.html index 76a17699..b671c1df 100644 --- a/app/templates/store/base.html +++ b/app/templates/store/base.html @@ -94,26 +94,11 @@ - - - - + {% block extra_scripts %}{% endblock %} + + + diff --git a/app/templates/storefront/base.html b/app/templates/storefront/base.html index c55e8b40..7e2da460 100644 --- a/app/templates/storefront/base.html +++ b/app/templates/storefront/base.html @@ -380,28 +380,13 @@ {# 6. API Client #} - {# 7. Alpine.js with CDN fallback (deferred - loads last) #} - - - {# 8. Page-specific JavaScript #} + {# 7. Page-specific JavaScript (MUST load before Alpine.js) #} {% block extra_scripts %}{% endblock %} + {# 8. LAST: Alpine.js (must be last defer script — auto-initializes on load) #} + + {# Toast notification container #}