Technical SEO & JavaScript

Rate this content
Bookmark

The web is an ever-changing platform and so are the websites we create. With new technologies and possibilities come new challenges for both developers and SEOs. In this session, we will talk about how developers and SEOs can become a team and solve challenges together. We will look into a few scenarios where this collaboration can bring success to a project.

This talk has been presented at Vue.js London Live 2021, check out the latest edition of this Tech Conference.

FAQ

SEO, or Search Engine Optimization, is about ensuring that the content you create and publish online is visible to those searching for it. It focuses on making your website or application discoverable by search engines, which in turn helps users find your content when they search for relevant topics.

Technical SEO involves optimizing the infrastructure and code of websites so they can be easily crawled and indexed by search engines. It is crucial for developers as both the server side and client side can significantly influence a website's ability to be crawled and indexed, affecting its overall visibility and ranking.

A common misconception about SEO is that it is merely about selling links or that it is 'snake oil' without real benefit. However, SEO is a legitimate and critical practice for increasing a website's visibility and ensuring it can be found by users through search engines.

Search engines crawl websites by making HTTP requests to URLs they discover. They then fetch the content from these URLs, understand it, and store it in a database called an index. When a user searches for something related, search engines rank the websites in their index to determine the most relevant results to display.

Client-side rendering is compatible with SEO as search engines can process and render client-side content. However, challenges like soft 404 errors can occur if the rendering process masks true HTTP error responses, potentially impacting a site's SEO performance.

Hash-based routing can lead to issues with SEO because search engines might treat URLs with hash fragments as the same page. This can prevent specific content from being indexed correctly. Developers are encouraged to use the History API for better SEO results.

Soft 404 errors occur when a non-existent page (a page that should return a 404 error) returns a success status instead. This confuses search engines and can lead to improper indexing, which negatively affects the visibility and ranking of the website.

Martin Splitt
Martin Splitt
8 min
21 Oct, 2021

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Technical SEO is important for making content visible to search engines. Developers have a significant impact on the crawling and indexing process. Hash-based routing can lead to duplicate content issues, and it is recommended to use the History API instead. In 2019, 12% of websites still used fragmented URLs.
Available in Español: SEO Técnico y JavaScript

1. Introduction to Technical SEO

Short description:

Hello and welcome everybody! Today, I'll be talking about technical SEO and its importance in making your content visible to people searching for it. SEO is a broad field, and while it's not only technical, we'll focus on the technical side in this talk. Search engines follow a process that involves making HTTP requests, understanding the content, indexing it, and ranking it. As developers, we have a significant impact on this process, as both the server-side and client-side influence whether a website can be crawled and indexed. Focusing on crawling and indexing can have a substantial impact on SEO.

Hello and welcome everybody out there, I'm super excited to be talking about technical SEO to all of you today. Specifically I want to focus a little bit on Vue.js, but basically none of the things that I talk about are very, very Vue.specific. If you want to learn more about Vue.specific SEO then I'll show you a few resources after the talk.

So when we talk about SEO, then a lot of people are like, what does it even mean? Besides the obvious meaning which is search engine optimization, it seems that it's very non-obvious to a lot of people what this is and a bunch of people think it's basically snake oil and trying to sell links and stuff like that. It's not that. Fundamentally, what SEO is about is making sure that what you are creating, what you are putting online there is actually visible to people looking for it, right? Because if you are going online to seek something that you don't know yet, then you're going through your search engine of choice and you search for whatever it is that you need and you find potential web applications or websites that are serving that specific purpose. To do so, you need to make sure that search engines can actually, you know, find your things and thus people using search engines can actually find the things that you built. And that entails making sure that the robots, which are the search engines, because they are computer programs that consume your content. You need to make sure that these robots actually can process and understand what you're putting out there on the web. And for that, there is a bunch of stuff that needs to be done and a bunch of it is technical, but not all of it is technical.

So SEO is a very broad field, similar to how software engineering is a very broad field. You might do frontend, you might do backend, you might do embedded systems, you might do game development. SEO is not only technical, but we'll focus on the technical side today, as we are all developers.

So when it comes to search engines, search engines fundamentally run a process, and this process can be broken down into multiple steps. The very first step is actually making HTTP requests to your server, to a URL that we found somewhere, and then fetching whatever comes back from your server. Then we need to understand what it is. So is this a website about dogs? Is this a website about cats? Is this a website about boats? And then we would put that into a database, which is called the index. And whenever someone looks for, let's say we make a cat website, if someone looks for cat pictures, then we have lots of websites for cat pictures in our index, and we will need to fetch them. And we need to figure out what is the best result for this user at this time. And that's the ranking process where we figure out where each of the websites in our index goes on the list of results, and then we show these results to users. Now, as developers, we actually have fundamental impact on this process because, if you think about it, both the server side as well as the client side influence if a website or web application can be crawled and indexed. If we can't make requests to certain pieces of content, or if the URL just gives us a 404 or a 500 error, then we can't really take it in and process it further. If we do, but then there's like something in the JavaScript that prevents us from seeing any of the content, then we don't really know what the website is about, and we can't actually put that into the index either. And if it's not in the index, we can't really rank it. A lot of people are focusing on ranking when it comes to SEO, and I don't think that's reasonable because it's just a lot of factors. And ranking is also influenced by where is our user, how many other competitors are there, what are the competitors doing. So there's constant flux in rankings, and I don't think it makes sense to look into those too much. I would focus more on the crawling and indexing side of things, because that's where you can have a lot of impact. Now as I said, the process starts with crawling, which means we discover a URL somewhere, and then we make a request to that URL. URLs take many forms, but these are the typical URLs that you probably have encountered yourself or have provided yourself.

2. Hash-based Routing and SEO

Short description:

Hash-based routing is not ideal for SEO as it can lead to duplicate content issues. Instead, it is recommended to use the History API for better crawling and indexing. In 2019, 12% of the websites we crawled still used fragmented URLs.

So you have a host, you have a path, and sometimes you have subsections. The thing with these hashes, or fragments as they are called technically, is that they are not meant to address different content. So page should have a lot of content and then part of it is the content that is addressed by subsection. But it's not that if I have page and then I change the fragment that I get completely new content that I wouldn't have seen beforehand if I would have gone to slash page.

Unfortunately, that's what a lot of people are doing. They are using hash-based routing, which is legitimate because it is a lot easier to set up for a local development server. But nonetheless, for SEO purposes, this is not great because a crawler assumes that these two pages are the same as the homepage here, right? The hash about should just be a part of what is already on the homepage on slash. Same with an exclamation mark in there. We have a specific URL crawling scheme for such URLs but we have deprecated it because we found it not to work that well. So definitely make sure to use History API rather than Hash Based Routing. In 2019, 12% of the websites we crawled for the Web Armor Doc unfortunately continue to use fragmented URLs.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
This talk discusses the usage of Microfrontends in Remix and introduces the Tiny Frontend library. Kazoo, a used car buying platform, follows a domain-driven design approach and encountered issues with granular slicing. Tiny Frontend aims to solve the slicing problem and promotes type safety and compatibility of shared dependencies. The speaker demonstrates how Tiny Frontend works with server-side rendering and how Remix can consume and update components without redeploying the app. The talk also explores the usage of micro frontends and the future support for Webpack Module Federation in Remix.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
RemixConf EU discussed full stack components and their benefits, such as marrying the backend and UI in the same file. The talk demonstrated the implementation of a combo box with search functionality using Remix and the Downshift library. It also highlighted the ease of creating resource routes in Remix and the importance of code organization and maintainability in full stack components. The speaker expressed gratitude towards the audience and discussed the future of Remix, including its acquisition by Shopify and the potential for collaboration with Hydrogen.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
Watch video: Debugging JS
Debugging JavaScript is a crucial skill that is often overlooked in the industry. It is important to understand the problem, reproduce the issue, and identify the root cause. Having a variety of debugging tools and techniques, such as console methods and graphical debuggers, is beneficial. Replay is a time-traveling debugger for JavaScript that allows users to record and inspect bugs. It works with Redux, plain React, and even minified code with the help of source maps.
Making JavaScript on WebAssembly Fast
JSNation Live 2021JSNation Live 2021
29 min
Making JavaScript on WebAssembly Fast
Top Content
WebAssembly enables optimizing JavaScript performance for different environments by deploying the JavaScript engine as a portable WebAssembly module. By making JavaScript on WebAssembly fast, instances can be created for each request, reducing latency and security risks. Initialization and runtime phases can be improved with tools like Wiser and snapshotting, resulting in faster startup times. Optimizing JavaScript performance in WebAssembly can be achieved through techniques like ahead-of-time compilation and inline caching. WebAssembly usage is growing outside the web, offering benefits like isolation and portability. Build sizes and snapshotting in WebAssembly depend on the application, and more information can be found on the Mozilla Hacks website and Bike Reliance site.
Webpack in 5 Years?
JSNation 2022JSNation 2022
26 min
Webpack in 5 Years?
Top Content
In the last 10 years, Webpack has shaped the way we develop web applications by introducing code splitting, co-locating style sheets and assets with JavaScript modules, and enabling bundling for server-side processing. Webpack's flexibility and large plugin system have also contributed to innovation in the ecosystem. The initial configuration for Webpack can be overwhelming, but it is necessary due to the complexity of modern web applications. In larger scale applications, there are performance problems in Webpack due to issues with garbage collection, leveraging multiple CPUs, and architectural limitations. Fixing problems in Webpack has trade-offs, but a rewrite could optimize architecture and fix performance issues.
Towards a Standard Library for JavaScript Runtimes
Node Congress 2022Node Congress 2022
34 min
Towards a Standard Library for JavaScript Runtimes
Top Content
There is a need for a standard library of APIs for JavaScript runtimes, as there are currently multiple ways to perform fundamental tasks like base64 encoding. JavaScript runtimes have historically lacked a standard library, causing friction and difficulty for developers. The idea of a small core has both benefits and drawbacks, with some runtimes abusing it to limit innovation. There is a misalignment between Node and web browsers in terms of functionality and API standards. The proposal is to involve browser developers in conversations about API standardization and to create a common standard library for JavaScript runtimes.

Workshops on related topic

Master JavaScript Patterns
JSNation 2024JSNation 2024
145 min
Master JavaScript Patterns
Featured Workshop
Adrian Hajdin
Adrian Hajdin
During this workshop, participants will review the essential JavaScript patterns that every developer should know. Through hands-on exercises, real-world examples, and interactive discussions, attendees will deepen their understanding of best practices for organizing code, solving common challenges, and designing scalable architectures. By the end of the workshop, participants will gain newfound confidence in their ability to write high-quality JavaScript code that stands the test of time.
Points Covered:
1. Introduction to JavaScript Patterns2. Foundational Patterns3. Object Creation Patterns4. Behavioral Patterns5. Architectural Patterns6. Hands-On Exercises and Case Studies
How It Will Help Developers:
- Gain a deep understanding of JavaScript patterns and their applications in real-world scenarios- Learn best practices for organizing code, solving common challenges, and designing scalable architectures- Enhance problem-solving skills and code readability- Improve collaboration and communication within development teams- Accelerate career growth and opportunities for advancement in the software industry
Integrating LangChain with JavaScript for Web Developers
React Summit 2024React Summit 2024
92 min
Integrating LangChain with JavaScript for Web Developers
Featured Workshop
Vivek Nayyar
Vivek Nayyar
Dive into the world of AI with our interactive workshop designed specifically for web developers. "Hands-On AI: Integrating LangChain with JavaScript for Web Developers" offers a unique opportunity to bridge the gap between AI and web development. Despite the prominence of Python in AI development, the vast potential of JavaScript remains largely untapped. This workshop aims to change that.Throughout this hands-on session, participants will learn how to leverage LangChain—a tool designed to make large language models more accessible and useful—to build dynamic AI agents directly within JavaScript environments. This approach opens up new possibilities for enhancing web applications with intelligent features, from automated customer support to content generation and beyond.We'll start with the basics of LangChain and AI models, ensuring a solid foundation even for those new to AI. From there, we'll dive into practical exercises that demonstrate how to integrate these technologies into real-world JavaScript projects. Participants will work through examples, facing and overcoming the challenges of making AI work seamlessly on the web.This workshop is more than just a learning experience; it's a chance to be at the forefront of an emerging field. By the end, attendees will not only have gained valuable skills but also created AI-enhanced features they can take back to their projects or workplaces.Whether you're a seasoned web developer curious about AI or looking to expand your skillset into new and exciting areas, "Hands-On AI: Integrating LangChain with JavaScript for Web Developers" is your gateway to the future of web development. Join us to unlock the potential of AI in your web projects, making them smarter, more interactive, and more engaging for users.
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
React Day Berlin 2022React Day Berlin 2022
86 min
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
Top Content
WorkshopFree
Hussien Khayoon
Kahvi Patel
2 authors
Using a library might seem easy at first glance, but how do you choose the right library? How do you upgrade an existing one? And how do you wade through the documentation to find what you want?
In this workshop, we’ll discuss all these finer points while going through a general example of building a code editor using CodeMirror in React. All while sharing some of the nuances our team learned about using this library and some problems we encountered.
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.
React Server Components Unleashed: A Deep Dive into Next-Gen Web Development
React Day Berlin 2023React Day Berlin 2023
149 min
React Server Components Unleashed: A Deep Dive into Next-Gen Web Development
Workshop
Maurice de Beijer
Maurice de Beijer
Get ready to supercharge your web development skills with React Server Components! In this immersive, 3-hour workshop, we'll unlock the full potential of this revolutionary technology and explore how it's transforming the way developers build lightning-fast, efficient web applications.
Join us as we delve into the exciting world of React Server Components, which seamlessly blend server-side rendering with client-side interactivity for unparalleled performance and user experience. You'll gain hands-on experience through practical exercises, real-world examples, and expert guidance on how to harness the power of Server Components in your own projects.
Throughout the workshop, we'll cover essential topics, including:- Understanding the differences between Server and Client Components- Implementing Server Components to optimize data fetching and reduce JavaScript bundle size- Integrating Server and Client Components for a seamless user experience- Strategies for effectively passing data between components and managing state- Tips and best practices for maximizing the performance benefits of React Server Components
0 to Auth in an Hour Using NodeJS SDK
Node Congress 2023Node Congress 2023
63 min
0 to Auth in an Hour Using NodeJS SDK
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.JS backend + React frontend) to authenticate users with OAuth (social login) and One Time Passwords (email), including:- User authentication - Managing user interactions, returning session / refresh JWTs- Session management and validation - Storing the session for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.
Table of contents- A quick intro to core authentication concepts- Coding- Why passwordless matters
Prerequisites- IDE for your choice- Node 18 or higher