{"action":"opened","issue":{"url":"https://api.github.com/repos/DemocracyClub/UK-Polling-Stations/issues/138","repository_url":"https://api.github.com/repos/DemocracyClub/UK-Polling-Stations","labels_url":"https://api.github.com/repos/DemocracyClub/UK-Polling-Stations/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/DemocracyClub/UK-Polling-Stations/issues/138/comments","events_url":"https://api.github.com/repos/DemocracyClub/UK-Polling-Stations/issues/138/events","html_url":"https://github.com/DemocracyClub/UK-Polling-Stations/issues/138","id":131607653,"number":138,"title":"Serve compressed static assets from a CDN","user":{"login":"symroe","id":242329,"avatar_url":"https://avatars.githubusercontent.com/u/242329?v=3","gravatar_id":"","url":"https://api.github.com/users/symroe","html_url":"https://github.com/symroe","followers_url":"https://api.github.com/users/symroe/followers","following_url":"https://api.github.com/users/symroe/following{/other_user}","gists_url":"https://api.github.com/users/symroe/gists{/gist_id}","starred_url":"https://api.github.com/users/symroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symroe/subscriptions","organizations_url":"https://api.github.com/users/symroe/orgs","repos_url":"https://api.github.com/users/symroe/repos","events_url":"https://api.github.com/users/symroe/events{/privacy}","received_events_url":"https://api.github.com/users/symroe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T10:33:01Z","updated_at":"2016-02-05T10:33:01Z","closed_at":null,"body":"From @chris48s:\r\n> At the moment, you're serving up some reasonably large js files (especially leaflet.js) from /static - but jquery, bootstrap and leaflet could all be pulled in from content delivery networks to reduce bandwidth requirements and reduce server load a bit. This probably isn't the most urgent improvement but it is very easy to do, so it seems like an easy win. I'll knock up a PR for this at the weekend, including a fallback to /static to avoid introducing an additional point of failure.\r\n\r\n:+1: This, plus I expect we can optimize the assets we're using anyway.  I'm planning on swapping to Foundation (to keep us in line with the other DC projects), and we might find that using the SASS version of that will reduce the overall file size."}}