Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
JavaScript SEO: CSR, SSR, SSG and How Googlebot Renders Pages
Content to be indexed must be in the first HTML: Googlebot runs JavaScript in a render queue, and many crawlers never run it. We measure the same Angular page as SSG, SSR and CSR with curl and headless Chrome, and see why Lighthouse gives the CSR page 100, why dynamic rendering is a workaround, and pitfalls such as content behind clicks.
SEO with Angular SSR: Server Routes, RenderMode, Meta Tags and Hydration
In Angular the render mode is chosen per route: a blog post uses Prerender with getPrerenderParams, search uses Server, the account page uses Client. We look at a service managing Title, Meta and canonical through DOCUMENT, REQUEST and RESPONSE_INIT, the HTTP transfer cache halving API calls, the isPlatformBrowser and useValue pitfalls, and allowedHosts rejecting even localhost with 400, with real outputs.