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:
parent
7ae742ca70
commit
abbc5237bd
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue