Boss lesson · Unit 01
Read a waterfall
One page, six requests: what waited on what, and which fix moves the finish
What you practise
- A network waterfall as text: what loaded when, what waited on what, which request delayed the page
Try a question from this lesson
Pick one
A waterfall lists each request with its start and end. Three of them start within 5 ms of each other, just after index.html ends. Why then?
name start end (ms)
index.html 0 200
style.css 210 450
app.js 210 900
logo.png 215 300
font.woff2 460 700
hero.jpg 905 1300Correct answer
Their URLs are in the HTML, which had just arrived
Why
The browser cannot ask for a file it has not heard of. style.css, app.js and logo.png are named in index.html, so their requests go out as soon as the HTML is there to be read.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Chains
A request that can only start after another has finished forms a chain. The longest chain decides when the page is complete.
Here it is index.html, then app.js, then hero.jpg. Speeding up anything that is not on that chain changes nothing at the end.
index.html 0 - 200
app.js 210 - 900
hero.jpg 905 - 130011 more exercises in the app
- 4× type the answer
- 4× multiple choice
- 1× true or false
- 1× match the pairs
- 1× order the lines
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.