From b5241ec75e5f1ec9a9a7ff7e075bc8c72ce6e7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=A9chal=20=7C=20Thomas?= Date: Fri, 5 Aug 2022 13:22:09 +0000 Subject: [PATCH] Defer des balises script. Ajout de preload sur fa. --- core/templates/core/base.jinja | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index ea251677..93c63f3e 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -10,20 +10,21 @@ - - + + + - + - + {% endblock %} - - + {# The token is always passed here to be accessible from the dom #} + {# See this workaround https://docs.djangoproject.com/en/2.0/ref/csrf/#acquiring-the-token-if-csrf-use-sessions-is-true #} {% csrf_token %} {% block header %}