Skip to main content

Practice · 3 of 3

Blocking Audit

CHALLENGE
Difficulty: intermediate+25 XP

Given an array of resources { type, blocking } where type is "css" | "js" | "font" | "img" and blocking is true when it blocks first render, write firstPaintBlockers(resources) returning the COUNT of blockers, and byKind(resources) returning an object mapping type => count (only types present).

Back to lesson: Practice: Waterfall & Blocking — Practice