diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html
index 78d99736..8b4669bb 100644
--- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html
+++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html
@@ -59,7 +59,7 @@
{% endblock %}
-{% block javascript %}
+{% block inline_javascript %}
{{ block.super }}
+ {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
+ {% endraw %}{% else %}{% raw %}
+
+
+
+
+
+
+ {% endraw %}{% endif %}{% raw %}
+
+
+ {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress js %}{% endraw %}{% endif %}{% raw %}
+
+ {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
+
+ {% endblock javascript %}
@@ -92,30 +116,9 @@
{% block modal %}{% endblock modal %}
-
-
- {% block javascript %}
- {% endraw %}{% if cookiecutter.custom_bootstrap_compilation == "y" and cookiecutter.js_task_runner == "Gulp" %}{% raw %}
-
- {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress js %}{% endraw %}{% endif %}{% raw %}
-
- {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
- {% endraw %}{% else %}{% raw %}
-
-
-
-
-
-
- {% endraw %}{% endif %}{% raw %}
-
-
- {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress js %}{% endraw %}{% endif %}{% raw %}
-
- {% endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
-
- {% endblock javascript %}
+ {% block inline_javascript %}
+ {# Script tags with only code, no src (defer by default) #}
+ {% endblock inline_javascript %}