Script Valley
Web Performance Fundamentals
How Browsers Load Pages/Assessment

Practice & Assessment

Test your understanding of How Browsers Load Pages

Multiple Choice Questions

5
1

Which browser rendering step calculates the exact pixel position and size of every visible element?

2

A script tag loaded with the `async` attribute will execute:

3

What does TTFB measure?

4

Which Cache-Control directive should be used for a versioned JavaScript bundle with a content hash in its filename?

5

In a network waterfall, a long 'Stalled' bar on a small file most likely indicates:

Coding Challenges

1
1

Audit and Fix Render-Blocking Resources

Given an HTML file (provided) that includes 3 external scripts and 2 stylesheets in the <head>, identify which are render-blocking and refactor them: add defer to all non-critical scripts, add async to the analytics script, and move the print stylesheet to use media='print'. Output: the corrected HTML file. Constraint: do not change the order of the link/script tags, only add attributes or media values. Estimated time: 15โ€“20 minutes.

Easy

Mini Project

1

CRP Audit Report for a Real Website

Choose any public website. Using Chrome DevTools Performance tab, record a cold-load. Document: (1) TTFB value, (2) every render-blocking resource identified (name and size), (3) a screenshot of the waterfall annotated with the four critical phases (DNS, connect, TTFB, download) on the main document request, (4) the cache headers returned on at least 3 static assets. Produce a one-page HTML report embedding your findings with a recommended fix for each issue found. Deliverable: a self-contained HTML file with your analysis.

Easy
Practice & Assessment โ€” How Browsers Load Pages โ€” Web Performance Fundamentals โ€” Script Valley โ€” Script Valley