Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Performance

Reference material for engineers and product teams. Company updates live on the Blog.

11 articles in the Performance category

Latest articles

Long Tasks and the Main Thread: why pages feel slow and how to improve INP

A page can load quickly, achieve a good LCP and still feel frozen after a click. A common cause is an overloaded main thread: JavaScript, style calculation, layout and rendering compete for the same time the browser needs to process user input and present the next frame. This guide explains how Long Tasks relate to INP, how to separate input delay, processing duration and presentation delay, and when to split tasks, use `scheduler.yield()`, move work to a Web Worker or optimize rendering itself.

Critical Rendering Path: how the browser renders a page and how to optimize it

The Critical Rendering Path describes the route from receiving HTML to displaying pixels on the screen. It is one of the most useful mental models in frontend performance because it explains why a small stylesheet can delay first render, why a plain script in `<head>` can stop the parser, and why late discovery of a critical resource can hurt LCP even when the file itself is small. This guide walks through DOM, CSSOM, render tree, layout, paint and compositing, then shows how to shorten the critical path without creating new bottlenecks.

JavaScript performance: reduce bundle size and speed up your application

A large JavaScript bundle costs more than transfer bytes. The browser must download, decompress, parse, compile and execute it, often on the same main thread that also handles user interaction. Good frontend optimization is therefore not about blindly shrinking one file. It is about shipping the right code at the right time and preventing regressions as the application evolves.

How to optimize image loading: srcset, sizes, preload, lazy loading and LCP

Choosing AVIF, WebP, JPEG or PNG is only the first step of image optimization. Just as important is when the browser discovers an image, which candidate it selects, which fetch priority it receives and whether layout can reserve its space before the transfer completes. This article focuses only on image delivery: responsive images, LCP, preload, fetchpriority, lazy loading, resource discovery and browser diagnostics.

preload vs prefetch vs preconnect vs fetchpriority: how to use resource hints correctly

Resource hints can speed up a page, but they can just as easily distort browser priorities and waste bandwidth. The key is understanding that each mechanism solves a different problem: `preload` accelerates a resource needed in the current navigation, `prefetch` speculates about a future navigation, `preconnect` prepares a connection to an origin, and `fetchpriority` only suggests a relative fetching priority. This guide shows how to combine them with LCP, responsive images, fonts, JavaScript modules, Speculation Rules and 103 Early Hints.

Third-party JavaScript without the performance hit: analytics, chat, ads and widgets

A site can be carefully optimized and still become slow after adding analytics, tag managers, chat, ads, A/B testing, maps, videos and other external services. Third-party code competes with your own application for network bandwidth, CPU and main-thread time, and its behavior can change without a deployment on your side. These integrations therefore need explicit budgets, loading strategies and regular audits.

Caching in web applications: browser, CDN, Redis and data invalidation

Caching improves a web application only when it is designed as part of the data-consistency model, not as an accidental speed layer. Browser caches, CDNs and Redis operate at different layers, use different keys, freshness rules and invalidation mechanisms. The hardest bugs appear when those layers disagree about how long data is valid and who is responsible for refreshing it.

SSR vs CSR vs SSG vs ISR: what to choose for SEO and performance

SSR, CSR, SSG and ISR differ mainly in where and when HTML is generated. For SEO, the key question is whether important content and metadata are available without waiting for client-side JavaScript. For performance, server cost, caching, JavaScript execution, hydration and freshness matter as well. In 2026, the best architecture is usually not one rendering mode for an entire application, but a strategy selected for each route or even each part of a route.