diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-14 12:57:16 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-15 16:01:00 +0000 |
commit | 4daf81dfcba97665d6a9beec86bb2bb3fe836be7 (patch) | |
tree | e50d9f9dfbfc333dcc9a19196e492af8464e63f2 /web/js/geolocation.js | |
parent | 979ec73bedd10aa8d0c07e17a53a2a2d8e517e6f (diff) |
Use modern prefetch.
This removes the yepnope library, instead using <link rel="prefetch">
with a polyfill (the polyfill will work on Safari but reload cached
script on the front page each time).
We prefetch map-related JavaScript (and other libraries only used on map
pages, such as Dropzone and Fancybox) on non-map pages, and don't bother
loading the validate plugin on the front page.
Now the map JavaScript list is available everywhere, we can use that
in the prefetch rather a hardcoded list.
Diffstat (limited to 'web/js/geolocation.js')
0 files changed, 0 insertions, 0 deletions