{"action":"created","issue":{"url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/86","repository_url":"https://api.github.com/repos/bitrefill/airfill-widget","labels_url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/86/comments","events_url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/86/events","html_url":"https://github.com/bitrefill/airfill-widget/issues/86","id":323299838,"number":86,"title":"Optimise widget build size","user":{"login":"littlemooon","id":2467416,"avatar_url":"https://avatars1.githubusercontent.com/u/2467416?v=4","gravatar_id":"","url":"https://api.github.com/users/littlemooon","html_url":"https://github.com/littlemooon","followers_url":"https://api.github.com/users/littlemooon/followers","following_url":"https://api.github.com/users/littlemooon/following{/other_user}","gists_url":"https://api.github.com/users/littlemooon/gists{/gist_id}","starred_url":"https://api.github.com/users/littlemooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlemooon/subscriptions","organizations_url":"https://api.github.com/users/littlemooon/orgs","repos_url":"https://api.github.com/users/littlemooon/repos","events_url":"https://api.github.com/users/littlemooon/events{/privacy}","received_events_url":"https://api.github.com/users/littlemooon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wille","id":18327818,"avatar_url":"https://avatars1.githubusercontent.com/u/18327818?v=4","gravatar_id":"","url":"https://api.github.com/users/wille","html_url":"https://github.com/wille","followers_url":"https://api.github.com/users/wille/followers","following_url":"https://api.github.com/users/wille/following{/other_user}","gists_url":"https://api.github.com/users/wille/gists{/gist_id}","starred_url":"https://api.github.com/users/wille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wille/subscriptions","organizations_url":"https://api.github.com/users/wille/orgs","repos_url":"https://api.github.com/users/wille/repos","events_url":"https://api.github.com/users/wille/events{/privacy}","received_events_url":"https://api.github.com/users/wille/received_events","type":"User","site_admin":false},"assignees":[{"login":"wille","id":18327818,"avatar_url":"https://avatars1.githubusercontent.com/u/18327818?v=4","gravatar_id":"","url":"https://api.github.com/users/wille","html_url":"https://github.com/wille","followers_url":"https://api.github.com/users/wille/followers","following_url":"https://api.github.com/users/wille/following{/other_user}","gists_url":"https://api.github.com/users/wille/gists{/gist_id}","starred_url":"https://api.github.com/users/wille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wille/subscriptions","organizations_url":"https://api.github.com/users/wille/orgs","repos_url":"https://api.github.com/users/wille/repos","events_url":"https://api.github.com/users/wille/events{/privacy}","received_events_url":"https://api.github.com/users/wille/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-15T16:49:15Z","updated_at":"2018-05-15T16:50:57Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"*Problem*\n\nWidget is way too large when bundled:\n- about 700kb gzipped, 2.5mb normally\n- creates performance/UX issues\n\n*Solution*\n\nAfter having a quick look at the webpack stats there are a few optimisations that jump out.\n\nLow hanging fruit:\n- replace materialui Tooltip with our own (removes popper.js)\n- replace glamor with emotion (emotion is already in the bundle)\n- remove recompose (barely using it)\n- replace any other large materialui components (check `yarn webpack-stats` to identify these)\n\nMore challenging / requires thought:\n- replace libphonenumber with something smaller/our own\n- replace downshift with something smaller/our own\n- replace react with preact (this should be easy after making the above changes)\n\nFurther down the line:\n- replace material ui completely with emotion (removes jss)\n- remove redux in favour of smaller state solution"},"comment":{"url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/comments/389236788","html_url":"https://github.com/bitrefill/airfill-widget/issues/86#issuecomment-389236788","issue_url":"https://api.github.com/repos/bitrefill/airfill-widget/issues/86","id":389236788,"user":{"login":"littlemooon","id":2467416,"avatar_url":"https://avatars1.githubusercontent.com/u/2467416?v=4","gravatar_id":"","url":"https://api.github.com/users/littlemooon","html_url":"https://github.com/littlemooon","followers_url":"https://api.github.com/users/littlemooon/followers","following_url":"https://api.github.com/users/littlemooon/following{/other_user}","gists_url":"https://api.github.com/users/littlemooon/gists{/gist_id}","starred_url":"https://api.github.com/users/littlemooon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlemooon/subscriptions","organizations_url":"https://api.github.com/users/littlemooon/orgs","repos_url":"https://api.github.com/users/littlemooon/repos","events_url":"https://api.github.com/users/littlemooon/events{/privacy}","received_events_url":"https://api.github.com/users/littlemooon/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T16:50:57Z","updated_at":"2018-05-15T16:50:57Z","author_association":"CONTRIBUTOR","body":"![image.png](https://images.zenhubusercontent.com/5a7c5b594b5806bc2bc621f2/4fd2906c-6bda-411e-b0ad-15d7b7cc4954)"}}
{"actor":{"display_login":"littlemooon"}}