Home/web.dev
Source

web.dev

904 articles from web.dev.

Performance — Optimize input delay

Optimize input delay

Input delay can contribute significantly to total interaction latency and negatively affect your page's INP. In this guide, learn what input delay is, and how you can reduce it for faster interactivity.

Wweb.dev·Performance
Performance — Optimize JavaScript execution

Optimize JavaScript execution

JavaScript often triggers visual changes. Sometimes that's directly through style manipulations, and sometimes it's calculations that result in visual changes, like searching or sorting data. Badly-timed or long-running JavaScript is a common cause of performance issues. You should look to minimize its impact where you can.

Wweb.dev·Performance
Engineering — Optimize long tasks

Optimize long tasks

You've been told "don't block the main thread" and "break up your long tasks", but what does it mean to do those things?

Wweb.dev·Engineering
Performance — Load Third-Party JavaScript

Load Third-Party JavaScript

Third-party scripts provide a wide range of useful features, making the web more dynamic. Learn how to optimize the loading of third-party scripts to reduce their impact on performance.

Wweb.dev·Performance
Performance — Audit performance

Audit performance

Audit your site to build a performant experience, highlighting quick wins that can be implemented with minimal sign-off. Use metrics to prioritize effort.

Wweb.dev·Performance
Engineering — Next steps

Next steps

Having completed a site audit, you should have accurate review data in a form that makes it easy for developers and other stakeholders to prioritize and justify changes.

Wweb.dev·Engineering
Performance — Prework

Prework

Before gathering performance metrics for a site audit, there are several checks you can do to identify easy fixes and areas for focus. Some of these checks are relatively subjective, but can identify problems that affect perceived performance.

Wweb.dev·Performance
Security — Check site security

Check site security

You won't be able to build a PWA without HTTPS. Serving your site over HTTPS is fundamental for security, and many APIs won't work without it. If you need to justify implementation costs, find out why HTTPS matters.

Wweb.dev·Security
Engineering — Share the results

Share the results

Once you've audited a site, make sure to package the results in a digestible form. Be sensitive to the people on the receiving end of your audit, structure your report carefully and present your data in terms of opportunities and solutions.

Wweb.dev·Engineering
Performance — Optimizing Content Efficiency

Optimizing Content Efficiency

The amount of data downloaded by apps continues to increase over time. To deliver great performance you must optimize data delivery as much as possible.

Wweb.dev·Performance
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