Practice ยท 3 of 3
LCP Chain Timer
Write lcpEstimate(page) โ a crude LCP model: ttfbMs + cssBlockMs + imageMs, where cssBlockMs = 50 per render-blocking css, imageMs = imageKB / 100 (KB per ms over 100KB/s effective). Return the total in ms. Write withinLcp(page) returning true when the estimate is <= 2500ms.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Slow Page Clinic โ Practice