Challenge 1
Set the pool size the Fetch spec actually defines.
// ONE shared in-flight pool per fetch group
export const QUOTA_BYTES = ;
Press Ctrl⌘Enter to check your answer
Fill in the missing quota constants and the in-flight accounting.
Challenge 1
// ONE shared in-flight pool per fetch group
export const QUOTA_BYTES = ;
Press Ctrl⌘Enter to check your answer
Challenge 2
export const SAFETY_MARGIN = ; // header + URL overhead
export const BUDGET = QUOTA_BYTES - SAFETY_MARGIN;
Press Ctrl⌘Enter to check your answer
Challenge 3
this.inFlight -= charge;
this.(); // try the refused queue again
Press Ctrl⌘Enter to check your answer
Challenge 4
const queued = navigator.sendBeacon(url, body);
if (queued === ) enqueue(body); // quota overflow at queueing time
Press Ctrl⌘Enter to check your answer
Challenge 5
// one 64 KiB pool per ...
const scope = 'one per Document or Worker: the '
Press Ctrl⌘Enter to check your answer