Web Performance

Why Core Web Vitals Are Just the Beginning

Published on October 10, 2024 by Jordy Scholing

Abstract code

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc ut laoreet dictum, massa sapien.

Beyond the Metrics

While Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS) are critical indicators of user experience, they don't tell the whole story. True performance optimization requires looking beyond these numbers and understanding the qualitative aspects of user interaction.

"Performance is not just about speed; it's about how the user perceives that speed. A fast site that feels clunky is still a bad experience."

Practical Steps

Here are a few things to consider:

  • Responsiveness to Interactions: How quickly does the UI respond to clicks, taps, and scrolls after the initial load?
  • Animation Smoothness: Are animations and transitions fluid, or do they jank and stutter?
  • Resource Loading Strategy: Are you prioritizing critical assets and deferring non-essential ones effectively?

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

The Role of Custom Metrics

To truly understand user-perceived performance, you often need to go beyond the standard metrics and define your own. These are known as custom metrics. For example, on a social media site, you might measure the time it takes for the main feed to become interactive. On an e-commerce site, it could be the time until the "Add to Cart" button is clickable on a product page.

Defining What Matters

Creating effective custom metrics involves a few key steps:

  • Identify Key User Journeys: What are the most critical paths users take on your site?
  • Pinpoint Critical Elements: Within those journeys, which UI elements are most important for the user to complete their task?
  • Instrument and Measure: Use APIs like the User Timing API to mark these moments in your code and send the data to your analytics or RUM tool.

By focusing on what actually matters to your users, you can create a performance story that resonates with both developers and business stakeholders alike.

Performance as a Feature

Ultimately, it's essential to treat performance not as a one-off task, but as a core feature of your product. This means integrating it into your entire development lifecycle, from initial design to final deployment and ongoing monitoring.

When performance is a feature, it gets the attention it deserves. It becomes a shared responsibility, and the entire team is empowered to build experiences that are not only functional and beautiful, but also incredibly fast and delightful to use. This cultural shift is the real key to unlocking the full potential of the web.

Advanced Styling Showcase

This section demonstrates the various content styling options available for blog posts, ensuring a rich and readable experience.

Informational Callouts

Use callouts to emphasize important information, warnings, or successful outcomes. They are great for drawing the reader's attention.

Heads up! This is an informational callout. It's perfect for tips, notes, or any supplementary information that complements the main text.

Success! This callout signifies a successful outcome or a best practice. Use it to highlight positive results or recommendations.

Warning. Be careful with this. This callout is used for warnings or to draw attention to potential pitfalls or important considerations.

Styled Lists

Lists are a great way to organize information. We have a few styles available.

  • Item one in a styled list.
  • Item two, which can wrap to multiple lines if needed.
  • A third item to complete the set.

Checklists are useful for summarizing key takeaways or action items.

  • Actionable Insight 1
  • Another Key Takeaway
  • The final important point

Code Blocks & Inline Styles

Sharing code is a core part of technical writing. Here is an example of a code block. You can also use Ctrl + C to copy text.

function greet(name) {
  // Returns a greeting string
  console.log(`Hello, ${'${name}'}!`);
}

greet('World');

The horizontal rule above can be used to create thematic breaks in the content.