chore: try to force browser to load Leaflet script soon

Leaflet file is the bigger, and it is otherwise only loaded
when the browser understand that it needs it, which means when
global.js is parsed, which means after all scripts have been loaded.
This commit is contained in:
Yohan Boniface 2024-01-22 14:38:17 +01:00
parent 7ae742ca70
commit abbc5237bd

View file

@ -1,5 +1,6 @@
{% load static %}
<script type="module" src="{% static 'umap/vendors/leaflet/leaflet-src.esm.js' %}" defer></script>
<script type="module" src="{% static 'umap/js/modules/global.js' %}" defer></script>
<script src="{% static 'umap/vendors/editable/Path.Drag.js' %}" defer></script>
<script src="{% static 'umap/vendors/editable/Leaflet.Editable.js' %}" defer></script>