
The service worker lifecycle
A deep-dive into the service worker lifecycle.
The best problem-solving writing in software engineering — databases, performance, security, frontend and distributed systems, in one feed.

A deep-dive into the service worker lifecycle.

Working with service workers is new and unfamiliar for many web devs. This post provides some tips for wrapping your mind around them.

The browser's HTTP cache is your first line of defense. It's not necessarily the most powerful or flexible approach, and you have limited control over the lifetime of cached responses. But there are several rules of thumb that give you a sensible caching implementation without much work, so you should always try to follow them.

Best practices for timing your service worker registration.

A payment transaction using Web Payments starts with the discovery of your payment app. Learn how to set up a payment method and get your payment app ready for merchants and customers to make payments.




Shadow DOM allows web developers to create compartmentalized DOM and CSS for web components


Use cross-platform browser features to build sign-in forms that are secure, accessible and easy to use.

Practical developer guidance about what to do when a user logs out of the website.

Help your users sign up, sign in and manage their account details with a minimum of fuss.

An SXG is a delivery mechanism that makes it possible to authenticate the origin of a resource independently of how it was delivered.

Learn how to serve signed exchanges (SXGs) using Web Packager.

Paint is the process of filling in pixels that eventually get composited to the users' screens. It is often the longest-running of all tasks in the pipeline, and one to avoid if at all possible.

Leverage A/B testing to evaluate the impact of site speed on your business metrics.

Learn about measuring animations, how to think about animation frames, and overall page smoothness.

Asking a user to provide a one-time password is a common way to confirm a user's identity. Learn best practices to build an SMS OTP form, with great user experience.

Starting in Chrome 81, scrollers remain snapped when the page layout changes. In other words, you no longer need to add event listeners to force resnapping.

You can influence the way your site appears when shared via social media by adding a few lines of code to each page. This can help bring more people to your site by providing previews with richer information than would otherwise be available.

Improve web debugging experience with source maps.


For Google I/O 2019, we introduced three new Web Performance initiatives that we hope will lead to better user experiences for everyone.