
Client hints are a set of HTTP request headers we can use to change how we deliver page resources based on characteristics of a user's device and network connection. In this article, you'll learn all about client hints, how they work, and a few ideas on how you can use them to make your site faster for users.

It's important to understand what using your app or site feels like when connectivity is poor or unreliable, and build accordingly. A range of tools can help you.

Follow these best practices when asking users for permission to access sensitive capabilities (such as camera, microphone, and location).

Persistent storage can help protect critical data from eviction, and reduce the chance of data loss.



Learn how gPhoto2 was ported to WebAssembly to control external cameras over USB from a web app.

Learn how code that interacts with external devices can be ported to the web with WebAssembly and Fugu APIs.

Learn how to adjust your prompts to achieve your preferred results across different LLMs, models, and model sizes.

Workbox is built into Create React App with a default configuration that precaches all static assets in your application with every build.

Learn how to use the Angular service worker to precache the static assets in your app.

Learn about rel=preconnect and rel=dns-prefetch resource hints and how to use them.

Code splitting allows you to speed up your applications, but it may slow down subsequent navigation. Predictive prefetching is an efficient way to use data analytics to smartly prefetch what the user is likely to use next, optimizing network utilization.

Many devices now support an operating system wide dark mode or dark theme experience. This post explains how dark mode can be supported on web pages, lists best practices, and introduces a custom element named dark-mode-toggle that allows web developers to offer users a way to override their operating system level preference on specific web pages.

The prefers-reduced-motion media query detects whether the user has requested that the system minimize the amount of animation or motion it uses. This is for users who either require or prefer minimized animations; for example people with vestibular disorders often prefer animations to be kept to a minimum.

As soon as you open any web page, the browser requests an HTML document from a server, parses the contents of the HTML file, and submits separate requests for any other external references. The critical request chain represents the order of resources that are prioritized and fetched by the browser.

By optimizing rendering cycles, Chrome 83 eliminates layout shifting when preloading optional fonts. Combining with font-display: optional is the most effective way to guarantee jank-free rendering of custom fonts.

Learn about new and exciting possibilities for preloading responsive images to ensure great user experience.

Find out what the browser preload scanner is, how it helps performance, and how you can stay out of its way.

In this section you'll learn how to format video for mobile web playback, and how to create multiple files to cover a range of browsers, plus how to encrypt them.

react-snap is a third-party library that pre-renders pages on your site into static HTML files. This can improve First Paint times in your application.

Learn how to profile the performance of Web Audio apps in Chrome using `about://tracing` and the **WebAudio** extension in Chrome DevTools.

Progressive enhancements ensure your PWA remains useful on all modern browsers, while delivering an advanced experience on browsers that support newer web capabilities.

Promises simplify deferred and asynchronous computations. A promise represents an operation that hasn't completed yet.