taarifa / TaarifaWaterpoints

Waterpoint management system for Tanzania
http://taarifa.org
Other
19 stars 21 forks source link

Local fallback for CDN & geonode #34

Open dgorissen opened 10 years ago

dgorissen commented 10 years ago

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.

cazgp commented 10 years ago

Was just gonna create this issue!

dgorissen commented 10 years ago

This is actually quite an important one as has become evident by the requests & poor connections.

cazgp commented 10 years ago

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.

cazgp commented 10 years ago

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?

dgorissen commented 10 years ago

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.

kynan commented 10 years ago

Indeed, #107 only addressed dependencies that used to be in app/vendor for which no CDN was available.