Permalink
Browse files

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

Defer loading of leaflet js til late in the page
  • Loading branch information...
saimn committed Feb 14, 2018
2 parents 9004843 + d3e5000 commit 00f96dceeb64e7613f1bc6f43a0c3a051eda190f
Showing with 4 additions and 2 deletions.
  1. +4 −2 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 @@ <h2>
{% 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>

0 comments on commit 00f96dc

Please sign in to comment.