{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/13422","repository_url":"https://api.github.com/repos/guardian/frontend","labels_url":"https://api.github.com/repos/guardian/frontend/issues/13422/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/13422/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/13422/events","html_url":"https://github.com/guardian/frontend/issues/13422","id":162491207,"number":13422,"title":"video embeds on a page should not load fully until user selects to play video","user":{"login":"michaelwmcnamara","id":7239344,"avatar_url":"https://avatars.githubusercontent.com/u/7239344?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwmcnamara","html_url":"https://github.com/michaelwmcnamara","followers_url":"https://api.github.com/users/michaelwmcnamara/followers","following_url":"https://api.github.com/users/michaelwmcnamara/following{/other_user}","gists_url":"https://api.github.com/users/michaelwmcnamara/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwmcnamara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwmcnamara/subscriptions","organizations_url":"https://api.github.com/users/michaelwmcnamara/orgs","repos_url":"https://api.github.com/users/michaelwmcnamara/repos","events_url":"https://api.github.com/users/michaelwmcnamara/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwmcnamara/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guardian/frontend/labels/bug","name":"bug","color":"cc2b12"},{"url":"https://api.github.com/repos/guardian/frontend/labels/confirmed","name":"confirmed","color":"b51800"},{"url":"https://api.github.com/repos/guardian/frontend/labels/core%20site","name":"core site","color":"bfdadc"},{"url":"https://api.github.com/repos/guardian/frontend/labels/looked%20at","name":"looked at","color":"fef2c0"},{"url":"https://api.github.com/repos/guardian/frontend/labels/performance","name":"performance","color":"006b75"},{"url":"https://api.github.com/repos/guardian/frontend/labels/video","name":"video","color":"5ebfba"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-27T16:17:28Z","updated_at":"2016-07-28T10:49:42Z","closed_at":null,"body":"# ISSUE\r\nThe page weight of pages with many videos is far too high. \r\nthe gifs that keep on giving series is a good example of this - \r\nthis page https://www.theguardian.com/sport/2016/jun/25/gifs-giving-roy-keane-diving-football-baseball\r\nweighs 8.3MB on both mobile and desktop without ads. \r\nThe reason for this is that all of the videos download their full content with the page, instead of waiting for the user to click play. As a result the user is paying to download content that he doesn't actually want.\r\n\r\nThis is also a problem on article pages that happen to have one of our videos,  but is especially annoying on the .gifs that keep on giving pages because someone has gone to all the effort of converting these gifs into videos, however, because we then load the whole video on the page, we lose the benefit of their efforts.\r\n\r\nOn fronts we use a placeholder for the video and only load the video when the user clicks play. This keeps the page light and allows large numbers of videos to be present without a performance hit.\r\nWe should do the same with video embeds on content pages.\r\n\r\n\r\n## Steps to Reproduce\r\nGo to https://www.theguardian.com/sport/2016/jun/25/gifs-giving-roy-keane-diving-football-baseball\r\nor another page with a guardian video embedded somewhere. Do not do anything with the page or press play on the video\r\nOpen debugging tools - network tab - sort by size and marvel at the size of these things!\r\n\r\n## Actual Results (include screenshots)\r\n![image](https://cloud.githubusercontent.com/assets/7239344/16386954/92da1308-3c8a-11e6-871b-a5a95c55f6b7.png)\r\n\r\n\r\n## Expected Results (include screenshots)\r\nVideo content should not be downloaded on content pages that are not video pages until the user presses play. This is the behaviour for 3rd party video embeds - ie youtube, and we should follow suit for the same reasons. \r\n\r\n## URL\r\nhttps://www.theguardian.com/sport/2016/jun/25/gifs-giving-roy-keane-diving-football-baseball\r\n\r\n## OS and Browser details\r\n\r\nAll of the browsers and devices, but chrome gives best debugging info so use that.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/235862708","html_url":"https://github.com/guardian/frontend/issues/13422#issuecomment-235862708","issue_url":"https://api.github.com/repos/guardian/frontend/issues/13422","id":235862708,"user":{"login":"michaelwmcnamara","id":7239344,"avatar_url":"https://avatars.githubusercontent.com/u/7239344?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwmcnamara","html_url":"https://github.com/michaelwmcnamara","followers_url":"https://api.github.com/users/michaelwmcnamara/followers","following_url":"https://api.github.com/users/michaelwmcnamara/following{/other_user}","gists_url":"https://api.github.com/users/michaelwmcnamara/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwmcnamara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwmcnamara/subscriptions","organizations_url":"https://api.github.com/users/michaelwmcnamara/orgs","repos_url":"https://api.github.com/users/michaelwmcnamara/repos","events_url":"https://api.github.com/users/michaelwmcnamara/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwmcnamara/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T10:49:42Z","updated_at":"2016-07-28T10:49:42Z","body":"This still needs to be fixed.\r\nmobile pages such as http://www.theguardian.com/sport/2016/jul/16/gifs-giving-cristiano-ronaldo-olivier-giroud-football are weighing in at 14.5MB with no ads - this is without the user pressing play on anything, just hitting the page.\r\nCurrently this would cost a user in the US just under a dollar on a postpaid mobile plan and US$1.46 on a prepaid plan. Just for landing on the page"}}
{"actor":{"display_login":"michaelwmcnamara"}}