{"action":"created","issue":{"url":"https://api.github.com/repos/Ranks/emojione/issues/46","labels_url":"https://api.github.com/repos/Ranks/emojione/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Ranks/emojione/issues/46/comments","events_url":"https://api.github.com/repos/Ranks/emojione/issues/46/events","html_url":"https://github.com/Ranks/emojione/pull/46","id":55302811,"number":46,"title":"Fix SVG support under Chrome","user":{"login":"nel","id":7854,"avatar_url":"https://avatars.githubusercontent.com/u/7854?v=3","gravatar_id":"","url":"https://api.github.com/users/nel","html_url":"https://github.com/nel","followers_url":"https://api.github.com/users/nel/followers","following_url":"https://api.github.com/users/nel/following{/other_user}","gists_url":"https://api.github.com/users/nel/gists{/gist_id}","starred_url":"https://api.github.com/users/nel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nel/subscriptions","organizations_url":"https://api.github.com/users/nel/orgs","repos_url":"https://api.github.com/users/nel/repos","events_url":"https://api.github.com/users/nel/events{/privacy}","received_events_url":"https://api.github.com/users/nel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-23T16:38:42Z","updated_at":"2015-01-23T21:07:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Ranks/emojione/pulls/46","html_url":"https://github.com/Ranks/emojione/pull/46","diff_url":"https://github.com/Ranks/emojione/pull/46.diff","patch_url":"https://github.com/Ranks/emojione/pull/46.patch"},"body":"Currently Emojione load SVG images through an <object> tag this has two disadvantage compared to standard img :\r\n- Copy/Paste does not copy the utf8 character and thus does not work properly\r\n- There is a MAJOR issue with recent version of Chrome and object SVG, this is slow as hell, freeze the page rendering and create a mini DOS if the same emoji is used several time.\r\n\r\nImg svg has a decent support similar to object (see http://caniuse.com/#feat=svg-img), object for svg is mostly used for old school html only automated fallback (which is not used in emojione).\r\n\r\nThis pull request replaces object svg loading by standard img loading.\r\n\r\nHere is the effect on the network panel on chrome for this page\r\n![screenshot 2015-01-23 17 20 39](https://cloud.githubusercontent.com/assets/7854/5878272/f2d64a4c-a325-11e4-908e-d9da0c136811.png)\r\n\r\nObject SVG (crazy network nightmare, svg loaded several time for the same emoji):\r\n![screenshot 2015-01-23 17 19 26](https://cloud.githubusercontent.com/assets/7854/5878275/fcbe83e4-a325-11e4-94ec-d43bd71c19e7.png)\r\n\r\nImg SVG (completly normal, only a loading when the same emoji is used several time):\r\n![screenshot 2015-01-23 17 29 45](https://cloud.githubusercontent.com/assets/7854/5878280/ffc088d0-a325-11e4-87b9-c61c71344d08.png)"},"comment":{"url":"https://api.github.com/repos/Ranks/emojione/issues/comments/71266083","html_url":"https://github.com/Ranks/emojione/pull/46#issuecomment-71266083","issue_url":"https://api.github.com/repos/Ranks/emojione/issues/46","id":71266083,"user":{"login":"jarthod","id":201687,"avatar_url":"https://avatars.githubusercontent.com/u/201687?v=3","gravatar_id":"","url":"https://api.github.com/users/jarthod","html_url":"https://github.com/jarthod","followers_url":"https://api.github.com/users/jarthod/followers","following_url":"https://api.github.com/users/jarthod/following{/other_user}","gists_url":"https://api.github.com/users/jarthod/gists{/gist_id}","starred_url":"https://api.github.com/users/jarthod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarthod/subscriptions","organizations_url":"https://api.github.com/users/jarthod/orgs","repos_url":"https://api.github.com/users/jarthod/repos","events_url":"https://api.github.com/users/jarthod/events{/privacy}","received_events_url":"https://api.github.com/users/jarthod/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T21:07:46Z","updated_at":"2015-01-23T21:07:46Z","body":":+1: "}}