diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-02-23 12:47:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-02-23 17:10:05 +0000 |
commit | c763a5e8e78849d736f9c0cec92ee2687ac9e75d (patch) | |
tree | 870b3f530b885bc4da49a26330fdfdbed1c24337 /templates/web/fixmystreet.com/front/javascript.html | |
parent | c79b9b54210cc5483bed03783417fbeb6ed422cb (diff) |
Tidy up front page and map copyright templates.
Diffstat (limited to 'templates/web/fixmystreet.com/front/javascript.html')
-rw-r--r-- | templates/web/fixmystreet.com/front/javascript.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/web/fixmystreet.com/front/javascript.html b/templates/web/fixmystreet.com/front/javascript.html new file mode 100644 index 000000000..0ccaa0870 --- /dev/null +++ b/templates/web/fixmystreet.com/front/javascript.html @@ -0,0 +1,15 @@ +<script> +yepnope.addPrefix( 'preload', function ( resource ) { + resource.noexec = true; + return resource; +}); +Modernizr.load({ + load: [ + "preload![% version('/js/OpenLayers.fixmystreet.js') %]", + "preload![% version('/js/map-OpenLayers.js') %]", + "preload![% version('/js/map-bing-ol.js') %]", + "preload![% version('/js/map-fms.js') %]", + "preload![% version('/js/jquery.ba-hashchange.min.js') %]" + ] +}); +</script> |