
DOM Order Matters
The importance of the default DOM order
1,512 articles on Frontend.

The importance of the default DOM order
![Frontend — Downloading resources in HTML5 - a[download]](/covers/8637d946c2.webp?v=8564874)
Chrome now supports the HTML spec's new `download` attribute to `a` elements.

The HTML5 Drag and Drop API lets developers make almost any element on a page draggable.

Learn how to improve load times and user experience by avoiding the common pitfalls of using third-party scripts.


Learn how to improve render times with critical CSS technique and how to choose the best tool for your project.

Learn how to optimize your Angular app's change detection to make it more responsive.

Learn about scope and how it works in JavaScript.

How to debug SEO issues on individual pages or across an entire site.

Learn how to implement cross-browser Houdini Paint API's and explore a world of Houdini worklets with Houdini.how.


Telling browser vendors about issues you find in their browser, on a specific device or platform is an integral part of making the web platform better!

The browser's HTTP Cache is your first line of defense against unnecessary network requests.

Modern browsers make it easy to customize certain components, like icons, the address bar color, and even add things like custom tiles. These simple tweaks can increase engagement and bring users back to your site.

Learn how to use Lighthouse and Chrome DevTools to identify slow third-party resources.


The inert property is a global HTML attribute that simplifies how to remove and restore user input events for an element, including focus events and events from assistive technologies.

IntersectionObservers let you know when an observed element enters or exits the browser's viewport.

This handy CSS pseudo-selector gives you a way to select elements that are modal.

Figuring out the value of `this` can be tricky in JavaScript, here's how to do it…

Understand the differences between frameworks and libraries in the context of a client-side JavaScript environment.

description: Define colors that react to the used color-scheme with the light-dark() function.

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.

Learn to diagnose costly, work-preventing user interaction.

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

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.

The <model-viewer> web component lets you use 3D models on a web page declaratively.

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

What tools to use to keep track of and analyze the webpack bundle

User-preference based media features, container queries, and media queries for new screen types, such as foldable screens, will enable us to usehr in a new era of responsive web design.

The browser's main thread is incredibly overworked. By using web workers to shift code off the main thread, you can significantly improve your app's reliability and user experience.

This post highlights a few powerful lines of CSS that do some serious heavy lifting and help you build robust modern layouts.

Use media queries to send images that are only as large as they need to be, a technique commonly known as responsive images.

Keep your network transmission and parse/compile cost for JavaScript low to ensure pages get interactive quickly.

Workbox is built into Create React App with a default configuration that precaches all static assets in your application with every build.

Learn how to use the Angular service worker to precache the static assets in your app.

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.

react-snap is a third-party library that pre-renders pages on your site into static HTML files. This can improve First Paint times in your application.

Promises simplify deferred and asynchronous computations. A promise represents an operation that hasn't completed yet.

Over the last three years, Chrome has been working to empower web applications that want to push the boundaries of what's possible in the browser. One such web application has been Photoshop. The idea of running software as complex as Photoshop directly in the browser would have been hard to imagine just a few years ago. However, by using various new web technologies, Adobe has now brought a publi

How to select files, read file metadata and content, and monitor read progress.

Knowing where to begin optimizing your application's JavaScript can be daunting. If you're taking advantage of modern tooling such as webpack, however, tree shaking might be a good place to start!

Learn how to register a web-based payment app to a customers' browser. You'll also learn how to debug them.

Analyze your JavaScript bundle to detect and remove unused code.

`ResizeObserver` notifies you when an element's content rectangle changes size so that you can react accordingly.

Learn how to make your initial app bundle smaller by using route-level code splitting.


A browser can load and display resources from multiple sites. If there is no restriction on interactions between those resources, and if a script is compromised by an attacker, the script could expose everything on a user's browser.

The new Sanitizer API aims to build a robust processor for arbitrary strings to be safely inserted into a page.

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.

Assistive technologies rely on developers using semantic HTML. But what are semantics, and how do screen readers use them?

Introduction to ARIA and non-native HTML semantics

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.




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.

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