Home/web.dev
Source

web.dev

904 articles from web.dev.

Frontend — Script evaluation and long tasks

Script evaluation and long tasks

When loading scripts, it takes time for the browser to evaluate them prior to execution, which can cause long tasks. Learn how script evaluation works, and what you can do to keep it from causing long tasks during page load.

Wweb.dev·Frontend
Security — What are security attacks?

What are security attacks?

An insecure application could expose users and systems to various types of damage. When a malicious party uses vulnerabilities or lack of security features to their advantage to cause damage, it is called an attack. We'll take a look at different types of attacks in this guide so you know what to look for when securing your application.

Wweb.dev·Security
Security — Security headers quick reference

Security headers quick reference

This article lists the most important security headers you can use to protect your website. Use it to understand web-based security features, learn how to implement them on your website, and as a reference for when you need a reminder.

Wweb.dev·Security
Security — Security should not be so scary!

Security should not be so scary!

When the word "security" comes to mind, it's usually in the context of bad news. But security is something to be taken as a positive and necessary part of web development just like "user experience" or "accessibility".

Wweb.dev·Security
Performance — Use WebP images

Use WebP images

WebP images are smaller than their JPEG and PNG counterparts—usually on the magnitude of a 25–35% reduction in filesize. This decreases page sizes and improves performance.

Wweb.dev·Performance
Engineering — Serve responsive images

Serve responsive images

Serving desktop-sized images to mobile devices can use 2–4x more data than needed. Instead of a "one-size-fits-all" approach to images, serve different image sizes to different devices.

Wweb.dev·Engineering
Engineering — Service worker mindset

Service worker mindset

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

Wweb.dev·Engineering
Frontend — Service workers and the Cache Storage API

Service workers and the Cache Storage API

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.

Wweb.dev·Frontend
Databases — Setting up a payment method

Setting up a payment method

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.

Wweb.dev·Databases
Engineering — Signed Exchanges (SXGs)

Signed Exchanges (SXGs)

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

Wweb.dev·Engineering
Security — SMS OTP form best practices

SMS OTP form best practices

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.

Wweb.dev·Security
Engineering — Social discovery

Social discovery

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.

Wweb.dev·Engineering
Frontend — Storage for the web

Storage for the web

There are many different options for storing data in the browser. Which one is best for your needs?

Wweb.dev·Frontend
Engineering — Style focus

Style focus

The focus indicator identifies the focused element. For users who can't or don't use a mouse, this indicator is extremely important, as it acts as a stand-in for their mouse-pointer.

Wweb.dev·Engineering