Skip to content

Commit 73f4058

Browse files
author
Sander De la Marche
committed
Defer the loading of the JS translations dump
We need our app.js to initialize and provide the global Translator for the translations to work without an error. See: sumocoders/FrameworkStylePackage#108
1 parent 2710cdc commit 73f4058

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/base.html.twig

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@
7676
{{ include('@SumoCodersFrameworkCore/dialogs.html.twig') }}
7777

7878
{% block javascripts %}
79-
<script src="{{ url('bazinga_jstranslation_js') }}"></script>
80-
8179
{{ encore_entry_script_tags('app') }}
80+
<script src="{{ url('bazinga_jstranslation_js') }}" defer></script>
8281
{% endblock %}
8382
</body>
8483
</html>

0 commit comments

Comments
 (0)