Skip to main content

4 docs tagged with "scripts"

View all tags

HTML Performance Basics

Learn the HTML habits behind a fast page: keep the head light, never block on scripts, size and lazy-load images, and ask four simple questions about every file. Includes a live page checker.

Script Loading and Performance

Understand what a browser does when it meets a script, why JavaScript is the most expensive kind of file, and how to load it without blocking the page. Includes a script order lab and a script weight lab.

The async Attribute

Learn how the async attribute works, why it suits independent scripts like analytics, and why it causes flaky bugs when scripts depend on each other. Includes a race condition simulator and a which-mode quiz.

The defer Attribute

Learn exactly how the defer attribute works: when deferred scripts download and run, what order they keep, which bugs appear when you add it, and how to move an old page to defer safely. Includes a run order simulator and a migration helper.