How a Page Loads

A slow page loses visitors before it finishes loading. You will watch a page load in the developer tools, load scripts without holding up the page, and use the head to add an icon, a stylesheet and hints that get the important files sooner.

Updated

Page Loading

  1. How a Page Loads (Journeyman): Watch the browser read a page from top to bottom and fetch every file it names, then measure the page's size and speed the way a visitor on a phone feels them.
  2. Loading Scripts: defer, async and Modules (Journeyman): Load a script without holding up the page, and choose defer, async or type="module" by what the script needs.
  3. Icons, Stylesheets and Resource Hints (Journeyman): Use the head's link tags to give a page its tab icon and its stylesheet, and to tell the browser early about the few files it needs first.

Exercise: Tune Up a Slow Page

  1. Exercise: Tune Up a Slow Page (Journeyman): Fix the Movie Night Club page's HTML so it loads faster on a phone, and prove it with the Network panel, a Lighthouse report and the tests.