Browse Source

Merge pull request #298 from edwinsteele/move-leaflet-js-in-page

Defer loading of leaflet js til late in the page
pull/299/head
Simon Conseil 8 years ago committed by GitHub
parent
commit
00f96dceeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      sigal/themes/galleria/templates/index.html

6
sigal/themes/galleria/templates/index.html

@ -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>

Loading…
Cancel
Save