Third-Party Scripts: Containment Strategies That Keep Pages Fast
How third-party scripts hurt performance, how to measure the damage, and pragmatic strategies: defer, isolate, audit, and remove.
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
24 articles · page 1 of 3
How third-party scripts hurt performance, how to measure the damage, and pragmatic strategies: defer, isolate, audit, and remove.
How JS hurts INP and load performance, how to find long tasks, and practical patterns to reduce client JS in modern apps (especially Next.js).
Understand what TypeScript emits vs what Node runs, and how to avoid the common import/export traps in real codebases.
A deep, interview-ready guide to event delegation: bubbling/capturing, delegation patterns, performance benefits, common pitfalls, and clean implementations for real UIs.
A deep, interview-ready guide to browser storage: cookies vs Web Storage vs IndexedDB, quotas, security pitfalls (XSS), JSON patterns, and best practices for modern frontend apps.
A deep guide to JSON in JavaScript for interviews and real apps: JSON.stringify behavior, undefined/functions, dates, BigInt, circular references, and safe parsing/validation patterns.
A deep interview-ready guide to object references in JavaScript: shallow vs deep copies, structuredClone, JSON pitfalls, immutability patterns, and common bugs.
A deep, interview-ready guide to JavaScript arrays: core methods, common patterns, time/space complexity, mutation pitfalls, and practical questions with solutions.
A deep, practical guide to error handling in JavaScript for frontend interviews: sync vs async errors, try/catch with async/await, custom error classes, cause, and user-friendly error patterns.