{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5399","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5399/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5399/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5399/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5399","id":116963644,"number":5399,"title":"Loading / asset optimizations","user":{"login":"bcjordan","id":206973,"avatar_url":"https://avatars.githubusercontent.com/u/206973?v=3","gravatar_id":"","url":"https://api.github.com/users/bcjordan","html_url":"https://github.com/bcjordan","followers_url":"https://api.github.com/users/bcjordan/followers","following_url":"https://api.github.com/users/bcjordan/following{/other_user}","gists_url":"https://api.github.com/users/bcjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/bcjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcjordan/subscriptions","organizations_url":"https://api.github.com/users/bcjordan/orgs","repos_url":"https://api.github.com/users/bcjordan/repos","events_url":"https://api.github.com/users/bcjordan/events{/privacy}","received_events_url":"https://api.github.com/users/bcjordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-15T00:40:22Z","updated_at":"2015-11-15T00:46:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/5399","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5399","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/5399.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/5399.patch"},"body":"- In static/craft/Sliced_Parts and static/skins/craft/images:\r\n    `pngquant --skip-if-larger --speed 1 *.png --ext=.opt.png`\r\n    and then manually reviewed and threw out optimized images with perceptible differences\r\n   Changed level 1 image asset loading from ~1.8mb to ~800kb\r\n\r\n- Load game music completely after game initialization\r\n    Previously erroneously loaded alongside essential game assets, now properly loads after game asset downloads completed (incl. assets for next level).\r\n\r\n- Convert slides .pngs to 460-width .jpgs, update slides.yml to reflect new assets\r\n    `mkdir jpegs; sips -s format jpeg *.* --out jpegnew`\r\n    `sips -Z 460 *.* --out resized`\r\n\r\nIE9 re-test in progress"},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/156766502","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5399#issuecomment-156766502","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5399","id":156766502,"user":{"login":"bcjordan","id":206973,"avatar_url":"https://avatars.githubusercontent.com/u/206973?v=3","gravatar_id":"","url":"https://api.github.com/users/bcjordan","html_url":"https://github.com/bcjordan","followers_url":"https://api.github.com/users/bcjordan/followers","following_url":"https://api.github.com/users/bcjordan/following{/other_user}","gists_url":"https://api.github.com/users/bcjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/bcjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcjordan/subscriptions","organizations_url":"https://api.github.com/users/bcjordan/orgs","repos_url":"https://api.github.com/users/bcjordan/repos","events_url":"https://api.github.com/users/bcjordan/events{/privacy}","received_events_url":"https://api.github.com/users/bcjordan/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T00:46:50Z","updated_at":"2015-11-15T00:46:50Z","body":"@breville only noticed a few very subtle artifacts on light fade gradients. e.g.:\r\n\r\nUn-optimized (33kb):\r\n\r\n![pop_up_character_steve_neutral](https://cloud.githubusercontent.com/assets/206973/11166583/15e82d14-8aef-11e5-93e5-267a5bf8d35f.png)\r\n\r\nOptimized (a tempting 6kb) (see bottom fade):\r\n\r\n`pngquant --skip-if-larger --speed 1 *.png --ext=.opt.png --force`\r\n\r\n![pop_up_character_steve_neutral opt](https://cloud.githubusercontent.com/assets/206973/11166582/15e5f60c-8aef-11e5-9276-5c0373db3a92.png)"}}