Techreport blog

Engineering Insights & Guides

The best problem-solving writing in software engineering — databases, performance, security, frontend and distributed systems, in one feed.

13,309 articles
Performance — Adapting to Users with Client Hints

Adapting to Users with Client Hints

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.

Wweb.dev·Performance
Performance — Faster web navigation with predictive prefetching

Faster web navigation with predictive prefetching

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.

Wweb.dev·Performance
Design & UX — prefers-color-scheme: Hello darkness, my old friend

prefers-color-scheme: Hello darkness, my old friend

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.

Wweb.dev·Design & UX
Frontend — prefers-reduced-motion: Sometimes less movement is more

prefers-reduced-motion: Sometimes less movement is more

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.

Wweb.dev·Frontend
Performance — Preload critical assets to improve loading speed

Preload critical assets to improve loading speed

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.

Wweb.dev·Performance
Engineering — Prepare media files for the web

Prepare media files for the web

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.

Wweb.dev·Engineering