{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8870","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8870/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8870/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8870/events","html_url":"https://github.com/Automattic/wp-calypso/pull/8870","id":184109344,"number":8870,"title":"Theme Showcase: Enable baseline Server-Side Rendering for logged-out users","user":{"login":"mattwondra","id":518059,"avatar_url":"https://avatars.githubusercontent.com/u/518059?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwondra","html_url":"https://github.com/mattwondra","followers_url":"https://api.github.com/users/mattwondra/followers","following_url":"https://api.github.com/users/mattwondra/following{/other_user}","gists_url":"https://api.github.com/users/mattwondra/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwondra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwondra/subscriptions","organizations_url":"https://api.github.com/users/mattwondra/orgs","repos_url":"https://api.github.com/users/mattwondra/repos","events_url":"https://api.github.com/users/mattwondra/events{/privacy}","received_events_url":"https://api.github.com/users/mattwondra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/OSS%20Citizen","name":"OSS Citizen","color":"5319e7"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"mattwondra","id":518059,"avatar_url":"https://avatars.githubusercontent.com/u/518059?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwondra","html_url":"https://github.com/mattwondra","followers_url":"https://api.github.com/users/mattwondra/followers","following_url":"https://api.github.com/users/mattwondra/following{/other_user}","gists_url":"https://api.github.com/users/mattwondra/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwondra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwondra/subscriptions","organizations_url":"https://api.github.com/users/mattwondra/orgs","repos_url":"https://api.github.com/users/mattwondra/repos","events_url":"https://api.github.com/users/mattwondra/events{/privacy}","received_events_url":"https://api.github.com/users/mattwondra/received_events","type":"User","site_admin":false},"assignees":[{"login":"mattwondra","id":518059,"avatar_url":"https://avatars.githubusercontent.com/u/518059?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwondra","html_url":"https://github.com/mattwondra","followers_url":"https://api.github.com/users/mattwondra/followers","following_url":"https://api.github.com/users/mattwondra/following{/other_user}","gists_url":"https://api.github.com/users/mattwondra/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwondra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwondra/subscriptions","organizations_url":"https://api.github.com/users/mattwondra/orgs","repos_url":"https://api.github.com/users/mattwondra/repos","events_url":"https://api.github.com/users/mattwondra/events{/privacy}","received_events_url":"https://api.github.com/users/mattwondra/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-20T00:43:47Z","updated_at":"2016-10-20T13:44:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/8870","html_url":"https://github.com/Automattic/wp-calypso/pull/8870","diff_url":"https://github.com/Automattic/wp-calypso/pull/8870.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/8870.patch"},"body":"While individual Theme pages are fully server-rendered, the Theme Showcase doesn't render until client-side JavaScript executes. This PR will improve the UX and SEO of the Theme Showcase by sending the initial render with the server payload.\r\n\r\nSince SSR for logged-in users is a [dependency nightmare](https://github.com/Automattic/wp-calypso/blob/master/docs/server-side-rendering.md#i-want-to-server-side-render-my-components), this PR will only handle the logged-out use case.\r\n\r\nThis PR will also only provide a baseline experience, behind a feature flag, to be improved upon in further PRs.\r\n\r\nKnown issues to be fixed before public release:\r\n* All users are being served the `<LoggedOut>` component in server render, not just logged-out users\r\n* Server-side theme fetch is not cached\r\n* `ThemesListFetcher` indiscriminately re-requests the data already provided by the server [when it mounts client-side](https://github.com/Automattic/wp-calypso/blob/master/client/components/data/themes-list-fetcher/index.jsx#L48)"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/255109714","html_url":"https://github.com/Automattic/wp-calypso/pull/8870#issuecomment-255109714","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8870","id":255109714,"user":{"login":"ockham","id":96308,"avatar_url":"https://avatars.githubusercontent.com/u/96308?v=3","gravatar_id":"","url":"https://api.github.com/users/ockham","html_url":"https://github.com/ockham","followers_url":"https://api.github.com/users/ockham/followers","following_url":"https://api.github.com/users/ockham/following{/other_user}","gists_url":"https://api.github.com/users/ockham/gists{/gist_id}","starred_url":"https://api.github.com/users/ockham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ockham/subscriptions","organizations_url":"https://api.github.com/users/ockham/orgs","repos_url":"https://api.github.com/users/ockham/repos","events_url":"https://api.github.com/users/ockham/events{/privacy}","received_events_url":"https://api.github.com/users/ockham/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T13:44:41Z","updated_at":"2016-10-20T13:44:41Z","body":"This is looking pretty good, and it's a joy to switch off JS in the browser and see `/design` being rendered nicely :-)"}}
{"actor":{"display_login":"ockham"}}