{"action":"closed","issue":{"url":"https://api.github.com/repos/tdwtf/WtfWebApp/issues/75","labels_url":"https://api.github.com/repos/tdwtf/WtfWebApp/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/tdwtf/WtfWebApp/issues/75/comments","events_url":"https://api.github.com/repos/tdwtf/WtfWebApp/issues/75/events","html_url":"https://github.com/tdwtf/WtfWebApp/issues/75","id":46289896,"number":75,"title":"Host JavaScript libraries locally instead of loading from external CDNs","user":{"login":"onitake","id":371687,"avatar_url":"https://avatars.githubusercontent.com/u/371687?v=3","gravatar_id":"","url":"https://api.github.com/users/onitake","html_url":"https://github.com/onitake","followers_url":"https://api.github.com/users/onitake/followers","following_url":"https://api.github.com/users/onitake/following{/other_user}","gists_url":"https://api.github.com/users/onitake/gists{/gist_id}","starred_url":"https://api.github.com/users/onitake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onitake/subscriptions","organizations_url":"https://api.github.com/users/onitake/orgs","repos_url":"https://api.github.com/users/onitake/repos","events_url":"https://api.github.com/users/onitake/events{/privacy}","received_events_url":"https://api.github.com/users/onitake/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tdwtf/WtfWebApp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-20T15:48:35Z","updated_at":"2016-01-25T18:35:31Z","closed_at":"2016-01-25T18:35:31Z","body":"I suggest downloading the jQuery JavaScript library and hosting it locally on the DailyWTF web server.\r\n\r\nThis is a general request and recommendation I tend to give to any web developer, however I understand that it is a matter of debate and some developers prefer avoiding the additional work. In my opinion, most of the arguments against local delivery are non-issues, since JavaScripts are usually very small in comparison to images and other content, so take up very little additional resources.\r\n\r\nAdvantages of local delivery:\r\n- Tracking by and information sharing with 3rd party sites (in this case Google) is reduced or eliminated\r\n- Reduced risk of Drive-by-attacks, as only one domain is involved in delivering JavaScript, and it is different for every site\r\n- Better library version control (less risk of incompatibilites due to API changes)\r\n- Single point of failure (usually a disadvantage, but in this case avoids being dependent on external servers)\r\n- Less messy domain blocking/unblocking for users with NoScript or similar script blocking tools\r\n\r\nDisadvantages:\r\n- Slower content delivery, CDNs usually have more capacity and less latency, especially if the local web server is under high load\r\n- Less caching, mainly affects slow mobile internet connections and devices with limited memory\r\n- Additional work in keeping the library up to date\r\n- Higher load on the web server"}}