{"action":"created","issue":{"url":"https://api.github.com/repos/cross-solution/YAWIK/issues/196","repository_url":"https://api.github.com/repos/cross-solution/YAWIK","labels_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/196/comments","events_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/196/events","html_url":"https://github.com/cross-solution/YAWIK/issues/196","id":145986471,"number":196,"title":"Organization logos drag down page performance","user":{"login":"utrenkner","id":8254715,"avatar_url":"https://avatars.githubusercontent.com/u/8254715?v=3","gravatar_id":"","url":"https://api.github.com/users/utrenkner","html_url":"https://github.com/utrenkner","followers_url":"https://api.github.com/users/utrenkner/followers","following_url":"https://api.github.com/users/utrenkner/following{/other_user}","gists_url":"https://api.github.com/users/utrenkner/gists{/gist_id}","starred_url":"https://api.github.com/users/utrenkner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utrenkner/subscriptions","organizations_url":"https://api.github.com/users/utrenkner/orgs","repos_url":"https://api.github.com/users/utrenkner/repos","events_url":"https://api.github.com/users/utrenkner/events{/privacy}","received_events_url":"https://api.github.com/users/utrenkner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cross-solution/YAWIK/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/cross-solution/YAWIK/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-05T13:19:37Z","updated_at":"2016-10-13T16:44:52Z","closed_at":"2016-10-13T16:44:52Z","body":"As we originally tested YAWIK without a lot of logos, this problem did not show up earlier:\r\nThe loading of organization logos from MongoDB for use in the jobboard significantly drags down page performance. Not only is it terribly slow to start with (in our case load times of sometimes 2+ seconds per image), the problem is exacerbated by overwriting our usual caching header for image files (we usually send `Cache-Control: max-age=31536000`). Instead, YAWIK serves the logos with these headers:\r\n```\r\nCache-Control: max-age=31536000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\r\nPragma: no-cache\r\n```\r\nThe effect of this is all too visible in webpagetest.org under repeat view, e.g. http://www.webpagetest.org/result/160405_VB_PZA/\r\n\r\nWithout using a caching server such as Varnish, I see three options to improve YAWIK's jobboard performance:\r\n- storing the logo in the file system instead of in MongoDB\r\n- including some kind of caching mechanism in the file system for these logos\r\n- as a work-around: lazy-loading the logos using e.g. this very small JavaScript https://varvy.com/pagespeed/defer-images.html (thanks to @technopagan who made me aware of this - we currently use it on pages such as http://www.greenjobs.de/angebote/neueste.html)"},"comment":{"url":"https://api.github.com/repos/cross-solution/YAWIK/issues/comments/253569668","html_url":"https://github.com/cross-solution/YAWIK/issues/196#issuecomment-253569668","issue_url":"https://api.github.com/repos/cross-solution/YAWIK/issues/196","id":253569668,"user":{"login":"TiSiE","id":2029304,"avatar_url":"https://avatars.githubusercontent.com/u/2029304?v=3","gravatar_id":"","url":"https://api.github.com/users/TiSiE","html_url":"https://github.com/TiSiE","followers_url":"https://api.github.com/users/TiSiE/followers","following_url":"https://api.github.com/users/TiSiE/following{/other_user}","gists_url":"https://api.github.com/users/TiSiE/gists{/gist_id}","starred_url":"https://api.github.com/users/TiSiE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiSiE/subscriptions","organizations_url":"https://api.github.com/users/TiSiE/orgs","repos_url":"https://api.github.com/users/TiSiE/repos","events_url":"https://api.github.com/users/TiSiE/events{/privacy}","received_events_url":"https://api.github.com/users/TiSiE/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:44:51Z","updated_at":"2016-10-13T16:44:51Z","body":"This will be addressed with #298"}}
{"actor":{"display_login":"TiSiE"}}