From d3e50001266e58c126decc10d97de936930c521c Mon Sep 17 00:00:00 2001 From: Edwin Steele Date: Wed, 14 Feb 2018 17:10:56 +1100 Subject: [PATCH] Defer loading of leaflet js til late in the page This is the case for other javascript. Do it for leaflet too. --- sigal/themes/galleria/templates/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html index bac86e9..6cfba46 100644 --- a/sigal/themes/galleria/templates/index.html +++ b/sigal/themes/galleria/templates/index.html @@ -15,8 +15,6 @@ {% if settings.show_map and album.show_map %} - - {% endif %} {% include 'analytics.html' %} @@ -152,6 +150,10 @@ {% else %} {% endif %} + {% if settings.show_map and album.show_map %} + + + {% endif %}