{"action":"created","issue":{"url":"https://api.github.com/repos/js-cookie/js-cookie/issues/60","labels_url":"https://api.github.com/repos/js-cookie/js-cookie/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/js-cookie/js-cookie/issues/60/comments","events_url":"https://api.github.com/repos/js-cookie/js-cookie/issues/60/events","html_url":"https://github.com/js-cookie/js-cookie/pull/60","id":93526869,"number":60,"title":"decoding of cookie value is done only if necessary","user":{"login":"TeamIguana","id":1172080,"avatar_url":"https://avatars.githubusercontent.com/u/1172080?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamIguana","html_url":"https://github.com/TeamIguana","followers_url":"https://api.github.com/users/TeamIguana/followers","following_url":"https://api.github.com/users/TeamIguana/following{/other_user}","gists_url":"https://api.github.com/users/TeamIguana/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamIguana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamIguana/subscriptions","organizations_url":"https://api.github.com/users/TeamIguana/orgs","repos_url":"https://api.github.com/users/TeamIguana/repos","events_url":"https://api.github.com/users/TeamIguana/events{/privacy}","received_events_url":"https://api.github.com/users/TeamIguana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-07T13:07:50Z","updated_at":"2015-07-11T21:51:09Z","closed_at":"2015-07-11T21:51:09Z","pull_request":{"url":"https://api.github.com/repos/js-cookie/js-cookie/pulls/60","html_url":"https://github.com/js-cookie/js-cookie/pull/60","diff_url":"https://github.com/js-cookie/js-cookie/pull/60.diff","patch_url":"https://github.com/js-cookie/js-cookie/pull/60.patch"},"body":"decoding of cookie value is done only if necessary"},"comment":{"url":"https://api.github.com/repos/js-cookie/js-cookie/issues/comments/120663464","html_url":"https://github.com/js-cookie/js-cookie/pull/60#issuecomment-120663464","issue_url":"https://api.github.com/repos/js-cookie/js-cookie/issues/60","id":120663464,"user":{"login":"FagnerMartinsBrack","id":835857,"avatar_url":"https://avatars.githubusercontent.com/u/835857?v=3","gravatar_id":"","url":"https://api.github.com/users/FagnerMartinsBrack","html_url":"https://github.com/FagnerMartinsBrack","followers_url":"https://api.github.com/users/FagnerMartinsBrack/followers","following_url":"https://api.github.com/users/FagnerMartinsBrack/following{/other_user}","gists_url":"https://api.github.com/users/FagnerMartinsBrack/gists{/gist_id}","starred_url":"https://api.github.com/users/FagnerMartinsBrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FagnerMartinsBrack/subscriptions","organizations_url":"https://api.github.com/users/FagnerMartinsBrack/orgs","repos_url":"https://api.github.com/users/FagnerMartinsBrack/repos","events_url":"https://api.github.com/users/FagnerMartinsBrack/events{/privacy}","received_events_url":"https://api.github.com/users/FagnerMartinsBrack/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T21:51:09Z","updated_at":"2015-07-11T21:51:09Z","body":"I committed the fix for values encoded using `escape` breaking the use of js-cookie in the page (https://github.com/js-cookie/js-cookie/commit/e36ddd2e3268627328a5a198384001533af2a67a). That was a regression from jquery-cookie (more information in the related PR), thanks very much for reporting it!\r\n\r\nRegarding the intent of this PR, I checked out your branch to see how many bytes this modification added.\r\n\r\nBefore (https://github.com/TeamIguana/js-cookie/commit/76932e33d9b4a50789c2edb0a1aa9657fde9b829):\r\n![image](https://cloud.githubusercontent.com/assets/835857/8635521/61cd2852-27fc-11e5-9a9f-1caf1edd83de.png)\r\n\r\nAfter (https://github.com/TeamIguana/js-cookie/commit/87b7057238a4ab7e3b7d84417dfa0cd5a0f79210):\r\n![image](https://cloud.githubusercontent.com/assets/835857/8635529/dbe39e1e-27fc-11e5-8163-699bf8b14c3d.png)\r\n\r\nAs you can see, executing the decoding operation for all cookies helps to cut `24 bytes` gzipped without any evidence of performance bottleneck."}}