diff --git a/app/providers/decidim/map/provider/dynamic_map/swisstopo.rb b/app/providers/decidim/map/provider/dynamic_map/swisstopo.rb index 19c4546..96528e1 100644 --- a/app/providers/decidim/map/provider/dynamic_map/swisstopo.rb +++ b/app/providers/decidim/map/provider/dynamic_map/swisstopo.rb @@ -17,7 +17,7 @@ class Builder < Decidim::Map::DynamicMap::Builder # @see Decidim::Map::DynamicMap::Builder#javascript_snippets def javascript_snippets [ - template.javascript_pack_tag("decidim/swisstopo") + template.javascript_pack_tag("decidim/swisstopo", defer: false) ].join end end diff --git a/app/views/decidim/shared/_static_map.html.erb b/app/views/decidim/shared/_static_map.html.erb index 064f705..5c65cef 100644 --- a/app/views/decidim/shared/_static_map.html.erb +++ b/app/views/decidim/shared/_static_map.html.erb @@ -16,8 +16,6 @@
${title}
- <%= stylesheet_link_tag "decidim/map" %> - <%= javascript_include_tag "decidim/map" %> <% end %> <% end %>