{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/html-minifier/issues/597","repository_url":"https://api.github.com/repos/kangax/html-minifier","labels_url":"https://api.github.com/repos/kangax/html-minifier/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/kangax/html-minifier/issues/597/comments","events_url":"https://api.github.com/repos/kangax/html-minifier/issues/597/events","html_url":"https://github.com/kangax/html-minifier/pull/597","id":145482026,"number":597,"title":"sort style classes","user":{"login":"alexlamsl","id":1898413,"avatar_url":"https://avatars.githubusercontent.com/u/1898413?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlamsl","html_url":"https://github.com/alexlamsl","followers_url":"https://api.github.com/users/alexlamsl/followers","following_url":"https://api.github.com/users/alexlamsl/following{/other_user}","gists_url":"https://api.github.com/users/alexlamsl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlamsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlamsl/subscriptions","organizations_url":"https://api.github.com/users/alexlamsl/orgs","repos_url":"https://api.github.com/users/alexlamsl/repos","events_url":"https://api.github.com/users/alexlamsl/events{/privacy}","received_events_url":"https://api.github.com/users/alexlamsl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-03T11:14:57Z","updated_at":"2016-04-04T18:32:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kangax/html-minifier/pulls/597","html_url":"https://github.com/kangax/html-minifier/pull/597","diff_url":"https://github.com/kangax/html-minifier/pull/597.diff","patch_url":"https://github.com/kangax/html-minifier/pull/597.patch"},"body":"So rather than going with a simplistic global frequency count, this optimises for longest chain output.\r\n\r\nSimilar to #594, we get some savings in compressed outputs in most cases. What surprised me was the Google benchmark :open_mouth:\r\n\r\nUsual warning about my choice and taste of variable names - suggestions welcome :sweat: \r\n\r\nTODOs:\r\n- [x] apply `chain.js` to `sortAttributes`\r\n- [x] combine first-pass scanning of `sortAttributes` and `sortClassName`"},"comment":{"url":"https://api.github.com/repos/kangax/html-minifier/issues/comments/205438237","html_url":"https://github.com/kangax/html-minifier/pull/597#issuecomment-205438237","issue_url":"https://api.github.com/repos/kangax/html-minifier/issues/597","id":205438237,"user":{"login":"alexlamsl","id":1898413,"avatar_url":"https://avatars.githubusercontent.com/u/1898413?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlamsl","html_url":"https://github.com/alexlamsl","followers_url":"https://api.github.com/users/alexlamsl/followers","following_url":"https://api.github.com/users/alexlamsl/following{/other_user}","gists_url":"https://api.github.com/users/alexlamsl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlamsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlamsl/subscriptions","organizations_url":"https://api.github.com/users/alexlamsl/orgs","repos_url":"https://api.github.com/users/alexlamsl/repos","events_url":"https://api.github.com/users/alexlamsl/events{/privacy}","received_events_url":"https://api.github.com/users/alexlamsl/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T18:32:48Z","updated_at":"2016-04-04T18:32:48Z","body":"@kangax the rebase was fun (since the file was introduced in the very first commit), but it's all done :sunglasses: "}}