Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

SEO for Developers: Stop Worrying About Keywords and Fix Your Rendering

Most developers hate SEO because it feels like voodoo. We are told to "optimize for keywords" or "build backlinks," which sounds like marketing fluff. But there is a side of SEO that is purely engineering. Technical SEO is about making sure a bot can discover, crawl, and render your page without hitting a wall. If you are building a modern web app with a framework like Next.js, Nuxt, or Remix,…

Developers often dismiss SEO as mystical. We're instructed to optimize for keywords or acquire backlinks, which seems like marketing jargon. However, there exists an engineering-focused aspect of SEO. Technical SEO revolves around ensuring search engine bots can uncover, crawl, and render your pages without encountering obstacles.

If you're constructing a contemporary web application using a framework such as Next.js, Nuxt, or Remix, you're already making significant progress. Yet, specific technical setbacks can hinder your rankings regardless of the quality of your content.

Google can indeed execute JavaScript, but it doesn't do so instantaneously. A two-wave indexing process occurs. Initially, Google crawls the HTML. If your page is merely a blank div with an id of "root," the bot perceives nothing. Subsequently, it places the page in a queue for rendering, which transpires later once resources are accessible.

If your crucial content relies on a sluggish API call triggered within a useEffect hook, you risk a truncated index. The remedy: Employ Server-Side Rendering (SSR) or Static Site Generation (SSG) for any page you aspire to rank. Should you opt for Client-Side Rendering (CSR), ensure your meta tags and principal headings are present in the initial HTML payload.

Search engines do not allocate limitless time to your website. They possess a crawl budget. If you harbor 10,000 pages of subpar, auto-generated content (like product variants on an e-commerce site), the bot squanders its budget on those rather than your high-value pages. In a previous project, we encountered thousands of duplicate pages due to trailing slashes and inconsistent URL casing.

The bot was crawling the same page four times over. The remedy: Implement canonical tags. Inform the bot: "Even if you unearthed this via an unusual URL, this is the official version." Utilize a robots.txt file to block paths that offer no value, such as /admin or /search-results. Set appropriate HTTP status codes. A 404 should be a 404, not a 200 OK page that declares "Not Found."

Core Web Vitals represent the performance metrics now employed by Google as a ranking factor. The most exasperating one for developers is typically Cumulative Layout Shift (CLS). CLS manifests when a user begins reading a paragraph, and subsequently, an image or an ad loads, displacing the text. It is an unsettling experience, and Google penalizes it.

The remedy: Always define width and height attributes on images. Reserve space for dynamic elements utilizing skeleton screens or min-height CSS. Refrain from inserting content above existing content unless it is in response to a user action.

Metadata doesn't necessitate being a wordsmith to manage it. You solely require a system. Every page mandates a distinct title tag and a meta description. If you're constructing a dynamic site, devise a helper function that generates these based on your data. For instance, if it's a product page, the title should be "Product Name | Site Name."

Do not overlook the Open Graph (OG) tags. Although these do not directly impact Google rankings, they influence how your links appear on social media, which generates the traffic leading to backlinks. The concrete takeaway: Cease viewing SEO as a marketing endeavor; instead, perceive it as a performance and accessibility endeavor.

If you wish for your site to rank, concentrate on this checklist: Is the primary content situated within the initial HTML source? (View Source to verify). Do all images encompass dimensions to prevent layout shift? Are you utilizing canonical tags to thwart duplicate content? Does each page return an appropriate 200, 404, or 301 status code?

When you rectify the technical foundation, the marketing team's keyword strategy actually has a chance to succeed.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Wednesday 19 August →