Web Vitals & Performance (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
Reducing Total Blocking Time (TBT) with Dynamic Imports.
senior LevelCode ExampleSystem Design
In Simple Words:
- Total Blocking Time (TBT): The lab proxy for INP. Measures total time between FCP and Time to Interactive (TTI) where tasks exceeded 50ms.
- Dynamic Imports:
Splits monolithic bundles into on-demand chunks, keeping the main thread clear during initial load.javascript
// Don't import heavy chart at initial load button.addEventListener('click', async () => { const { renderChart } = await import('./HeavyChart.js'); renderChart(); });