Open dgorissen opened 10 years ago
Was just gonna create this issue!
This is actually quite an important one as has become evident by the requests & poor connections.
Using fallback.js now. Will just do it by downloading all assets, bunging them in vendor, and using fallback to try from the cdn and fallback on our copies. Later on we can add multiple cdns.
Has this now been superseded by #107 given that https://github.com/sapegin/grunt-bower-concat can be integrated and we can concat and minify all JS without relying on CDNs?
My aim for this issue is a single switch you can toggle so that everything suddenly works locally (with exception of the map tiles, which is trickier). So #107 is a necessary step but not quite there yet.
Indeed, #107 only addressed dependencies that used to be in app/vendor
for which no CDN was available.
Currenly the webapp mostly relies on access to a remote CDN & geonode instance to work. However this makes it difficult or impossible to test/demo in places with poor or no connection. Logic should be added to be able to switch to a local copy of the necessary libs (managed using bower) and data files if need be.