Merge pull request #298 from edwinsteele/move-leaflet-js-in-page
Defer loading of leaflet js til late in the page
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
|
||||
{% if settings.show_map and album.show_map %}
|
||||
<link rel="stylesheet" href="{{ theme.url }}/leaflet/leaflet.css" />
|
||||
<script src="{{ theme.url }}/leaflet/leaflet.js"></script>
|
||||
<script src="{{ theme.url }}/leaflet/leaflet-providers.js"></script>
|
||||
{% endif %}
|
||||
|
||||
{% include 'analytics.html' %}
|
||||
@@ -152,6 +150,10 @@
|
||||
{% else %}
|
||||
<script src="{{ theme.url }}/jquery-3.3.1.min.js"></script>
|
||||
{% endif %}
|
||||
{% if settings.show_map and album.show_map %}
|
||||
<script src="{{ theme.url }}/leaflet/leaflet.js"></script>
|
||||
<script src="{{ theme.url }}/leaflet/leaflet-providers.js"></script>
|
||||
{% endif %}
|
||||
<script src="{{ theme.url }}//galleria.min.js"></script>
|
||||
<script src="{{ theme.url }}/themes/classic/galleria.classic.min.js"></script>
|
||||
<script src="{{ theme.url }}/plugins/history/galleria.history.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user