Refactoring - Making It SSR Ready
In this episode we are going to refactor our Sapper and Svelte code to make it ready for Server Side Rendering or SSR
In the previous episode I told you that our method for retrieving posts from our WordPress REST API was not exactly ideal, because it won’t be server side rendered. And we actually want that, so that our site would be more performant and so that we can get all SEO benefits.
So in this episode we are going to refactor our Sapper and Svelte code to make it SSR ready, and that we can reap all of the benefits that we get from that once we put our site online.