diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-15 11:43:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-16 17:31:07 +0100 |
commit | 7801ee537da7eda898a31af2a26e7b617970ccfb (patch) | |
tree | f39c4426b51317fb810892063adba3e1a42eecc4 /templates/web/base/front/javascript.html | |
parent | 759403c93b527e9a65b0e1fab7dea27526635b96 (diff) |
Split up modernizr/html5shiv/yepnope.
We only need html5shiv for <IE9, and we only use yepnope on the front
page.
Diffstat (limited to 'templates/web/base/front/javascript.html')
-rw-r--r-- | templates/web/base/front/javascript.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/base/front/javascript.html b/templates/web/base/front/javascript.html index b24c7493f..c3f527947 100644 --- a/templates/web/base/front/javascript.html +++ b/templates/web/base/front/javascript.html @@ -1,10 +1,11 @@ [%# Assume using OpenStreetMap maps %] +<script src="[% version('/js/yepnope.js') %]"></script> <script> yepnope.addPrefix( 'preload', function ( resource ) { resource.noexec = true; return resource; }); -Modernizr.load({ +yepnope({ load: [ "preload![% version('/js/OpenLayers/OpenLayers.fixmystreet.js') %]", "preload![% version('/js/map-OpenLayers.js') %]", |