{"action":"created","issue":{"url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1640","labels_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1640/labels{/name}","comments_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1640/comments","events_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1640/events","html_url":"https://github.com/CPAN-API/metacpan-web/issues/1640","id":129743633,"number":1640,"title":"Logged In Users Favourites fetched on every page request","user":{"login":"kentfredric","id":44790,"avatar_url":"https://avatars.githubusercontent.com/u/44790?v=3","gravatar_id":"","url":"https://api.github.com/users/kentfredric","html_url":"https://github.com/kentfredric","followers_url":"https://api.github.com/users/kentfredric/followers","following_url":"https://api.github.com/users/kentfredric/following{/other_user}","gists_url":"https://api.github.com/users/kentfredric/gists{/gist_id}","starred_url":"https://api.github.com/users/kentfredric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentfredric/subscriptions","organizations_url":"https://api.github.com/users/kentfredric/orgs","repos_url":"https://api.github.com/users/kentfredric/repos","events_url":"https://api.github.com/users/kentfredric/events{/privacy}","received_events_url":"https://api.github.com/users/kentfredric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ranguard","id":60391,"avatar_url":"https://avatars.githubusercontent.com/u/60391?v=3","gravatar_id":"","url":"https://api.github.com/users/ranguard","html_url":"https://github.com/ranguard","followers_url":"https://api.github.com/users/ranguard/followers","following_url":"https://api.github.com/users/ranguard/following{/other_user}","gists_url":"https://api.github.com/users/ranguard/gists{/gist_id}","starred_url":"https://api.github.com/users/ranguard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranguard/subscriptions","organizations_url":"https://api.github.com/users/ranguard/orgs","repos_url":"https://api.github.com/users/ranguard/repos","events_url":"https://api.github.com/users/ranguard/events{/privacy}","received_events_url":"https://api.github.com/users/ranguard/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2016-01-29T11:49:01Z","updated_at":"2016-02-01T11:15:33Z","closed_at":null,"body":"I was trying to diagnose why my page loads were taking so long, and I found some \"fun\" things.\r\n\r\nEvery page request fetches `https://metacpan.org/account/favorite/list_as_json`, logged in or not. \r\n\r\nAnd when diagnosing the problem using webpagetest.org ( as recommended by fastly ), this URI stuck out as being a significant slowdown, taking 500ms to query, ... and then returning 403.\r\n\r\n> https://metacpan.org/source/RJBS/if-0.0606/Changes\r\n![snapshot](http://www.webpagetest.org/waterfall.php?test=160129_ZR_K03&run=1&cached=0)\r\n\r\nUpon performing this myself, I found that a lot of metadata is being fetched without an obvious application. Specifically, its strange to be seeing so much metadata about \"who I am\" and \"my favourites\" when I'm on a page unrelated to \"me\", and I'm not seeing how that data is useful except for the fact I have to be logged in *somehow*\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/comments/177920393","html_url":"https://github.com/CPAN-API/metacpan-web/issues/1640#issuecomment-177920393","issue_url":"https://api.github.com/repos/CPAN-API/metacpan-web/issues/1640","id":177920393,"user":{"login":"kentfredric","id":44790,"avatar_url":"https://avatars.githubusercontent.com/u/44790?v=3","gravatar_id":"","url":"https://api.github.com/users/kentfredric","html_url":"https://github.com/kentfredric","followers_url":"https://api.github.com/users/kentfredric/followers","following_url":"https://api.github.com/users/kentfredric/following{/other_user}","gists_url":"https://api.github.com/users/kentfredric/gists{/gist_id}","starred_url":"https://api.github.com/users/kentfredric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentfredric/subscriptions","organizations_url":"https://api.github.com/users/kentfredric/orgs","repos_url":"https://api.github.com/users/kentfredric/repos","events_url":"https://api.github.com/users/kentfredric/events{/privacy}","received_events_url":"https://api.github.com/users/kentfredric/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T11:15:33Z","updated_at":"2016-02-01T11:15:33Z","body":"I locally tested an alternative way to get the ellipsis's on.\r\n\r\n1. I used a tool in firefox to replace your assets js with my own, sans elipsis code\r\n2. I modified the CSS dynamically as follows:\r\n```diff\r\n .ellipsis {\r\n    white-space: nowrap;\r\n    display: block;\r\n    overflow: hidden;\r\n+   text-overflow: \" ... \";\r\n+   padding-right: 1px;\r\n }\r\n```\r\n\r\nResult:\r\n\r\n![snapshot123](https://cloud.githubusercontent.com/assets/44790/12715901/c6a46326-c941-11e5-81ee-be0d16438522.png)\r\n![snapshot124](https://cloud.githubusercontent.com/assets/44790/12715902/ca422202-c941-11e5-8f95-a7375c3df4b8.png)\r\n\r\nThe leading and trailing space in the text-overflow field discourage the dots being part of the continuous text sequence ( so you don't get Foo-0.... ), and the right hand padding is added to prevent text hitting the bounding box and appearing joined with the next block. \r\n"}}