Load JavaScripts async

This commit is contained in:
Raphael Michel
2016-11-08 17:16:19 +01:00
parent 61df0962f0
commit 6686af7346

View File

@@ -16,16 +16,6 @@
<link rel="stylesheet" type="text/x-scss" href="{% static "pretixpresale/scss/main.scss" %}"/>
{% endcompress %}
{% endif %}
<script type="text/javascript" src="{% url 'javascript-catalog' lang=request.LANGUAGE_CODE %}"></script>
{% compress js %}
<script type="text/javascript" src="{% static "jquery/js/jquery-2.1.1.min.js" %}"></script>
<script type="text/javascript" src="{% static "moment/moment-with-locales.js" %}"></script>
<script type="text/javascript" src="{% static "js/jquery.formset.js" %}"></script>
<script type="text/javascript" src="{% static "bootstrap/js/bootstrap.js" %}"></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/main.js" %}"></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/asynctask.js" %}"></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/cart.js" %}"></script>
{% endcompress %}
{{ html_head|safe }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="origin">
@@ -60,8 +50,16 @@
{% trans "If this takes longer than a few minutes, please contact us." %}
</p>
</div>
<script type="text/javascript" src="{% url 'javascript-catalog' lang=request.LANGUAGE_CODE %}" async></script>
{% compress js %}
<script type="text/javascript" src="{% static "lightbox/js/lightbox.min.js" %}"></script>
<script type="text/javascript" src="{% static "jquery/js/jquery-2.1.1.min.js" %}" async></script>
<script type="text/javascript" src="{% static "moment/moment-with-locales.js" %}" async></script>
<script type="text/javascript" src="{% static "js/jquery.formset.js" %}" async></script>
<script type="text/javascript" src="{% static "bootstrap/js/bootstrap.js" %}" async></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/main.js" %}" async></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/asynctask.js" %}" async></script>
<script type="text/javascript" src="{% static "pretixpresale/js/ui/cart.js" %}" async></script>
<script type="text/javascript" src="{% static "lightbox/js/lightbox.min.js" %}" async></script>
{% endcompress %}
</body>
</html>