Home/web.dev
Source

web.dev

904 articles from web.dev.

Performance — Effectively loading ads without impacting page speed

Effectively loading ads without impacting page speed

In today's digital world, online advertising is a critical part of the free web we all enjoy. However, poorly implemented ads can lead to a slower browsing experience, frustrating users and diminishing engagement. Learn how to effectively load ads without impacting your page speed, ensuring a seamless user experience, and maximizing revenue opportunities for website owners.

Wweb.dev·Performance
Frontend — Loading WebAssembly modules efficiently

Loading WebAssembly modules efficiently

When working with WebAssembly, you often want to download a module, compile it, instantiate it, and then use whatever it exports in JavaScript. This post explains our recommended approach for optimal efficiency.

Wweb.dev·Frontend
Performance — Love your cache ❤️

Love your cache ❤️

First load performance is important, but it's not everything. Users who load your site a second time will use their cache to get access to your content—so it's key to make sure it works well too, both for speed and correctness.

Wweb.dev·Performance
Engineering — Measure offline usage

Measure offline usage

How to track offline usage of your site so that you can make a case as to why your site needs a better offline experience.

Wweb.dev·Engineering
Engineering — Media application basics

Media application basics

Working with media often requires changing the characteristics of media files. On this page, you'll learn about the tools used and how to install them quickly.

Wweb.dev·Engineering
Security — Media encryption

Media encryption

Learn digital rights management concepts, and the commands needed to get from a raw mov file to encrypted media packaged for MPEG-DASH or HLS using both Clear Key or Widevine encryption.

Wweb.dev·Security
Engineering — Media file basics

Media file basics

You might think that you can take a video from a camera and upload it to the web as is. Preparing a video for serving from your own site is a bit more complicated.

Wweb.dev·Engineering
Systems — Media frameworks

Media frameworks

Media frameworks come in both the proprietary and open-source variety, and at their core are a set of APIs that support audio and/or video playback for various container formats and transmission protocols.

Wweb.dev·Systems
Frontend — Media Source Extensions

Media Source Extensions

Media Source Extensions (MSE) is a JavaScript API that lets you build streams for playback from segments of audio or video.

Wweb.dev·Frontend
Engineering — Media streaming basics

Media streaming basics

Media streaming is the method for continuously delivering multimedia content from a server where the content has been split into individual chunks of data that can be joined back together during playback in a specific order through a range request using protocols such as DASH and HLS.

Wweb.dev·Engineering
Frontend — CSS min(), max(), and clamp()

CSS min(), max(), and clamp()

Min, max, and clamp provide powerful CSS capabilities that enable more responsive styling with fewer liens of code. This post goes over how to control element sizing, maintain proper spacing, and implement fluid typography using these well-supported CSS math functions.

Wweb.dev·Frontend
Performance — Threading the web with module workers

Threading the web with module workers

Module workers make it easy to unblock the main thread by moving expensive code to a background thread while keeping the ergonomic and performance benefits of standard JavaScript modules.

Wweb.dev·Performance
Frontend — Preload modules

Preload modules

Module preload offers a way of declaratively loading JavaScript modules ahead of time.

Wweb.dev·Frontend
Networking — Media Source Extensions for Audio

Media Source Extensions for Audio

Media Source Extensions (MSE) provide extended buffering and playback control for the HTML5 audio and video elements. While originally developed to facilitate Dynamic Adaptive Streaming over HTTP (DASH) based video players, MSE can be used for audio; specifically for gapless playback.

Wweb.dev·Networking
Networking — What is network reliability and how do you measure it?

What is network reliability and how do you measure it?

The modern web is enjoyed by a wide swath of people, using a range of different devices and types of network connections. Your creations can reach users all across the world, but delivering a reliable experience on the web for all of your users can be challenging. It can be a challenge just to understand what reliability means.

Wweb.dev·Networking
Engineering — Optimize Cumulative Layout Shift

Optimize Cumulative Layout Shift

Cumulative Layout Shift (CLS) is a metric that quantifies how often users experience sudden shifts in page content. In this guide, we'll cover optimizing common causes of CLS such as images and iframes without dimensions or dynamic content.

Wweb.dev·Engineering