JS Guide
HomeQuestionsSearchResources
Search

Built for developers preparing for JavaScript, React & TypeScript interviews.

ResourcesQuestionsSupport
HomeQuestionsSearchProgress
HomeQuestionsperformance

performance

Web performance optimization, metrics, and monitoring

Your Progress

0 of 5 completed

0%

5 Questions

mid Level
1
How does code splitting work and when should you use it?
mid
bundling
Code splitting breaks your bundle into smaller chunks that load on demand. Use it for route-based splitting, heavy components, and vendor libraries. This reduces initial load time by only loading code when it's needed.
2
How do you analyze and reduce bundle size?
mid
bundling
Use tools like webpack-bundle-analyzer, Vite's rollup-plugin-visualizer, or source-map-explorer to visualize bundle composition. Reduce size by removing unused code, using smaller alternatives, lazy loading, and tree shaking.
3
What are common React performance optimization techniques?
mid
react
Optimize React apps by: preventing unnecessary re-renders (memo, useMemo, useCallback), virtualizing long lists, code splitting routes/components, optimizing context usage, and using proper keys. Measure first with React DevTools Profiler.
4
What is the difference between SSR, SSG, and CSR?
mid
rendering
CSR (Client-Side Rendering) renders in browser. SSR (Server-Side Rendering) generates HTML on each request. SSG (Static Site Generation) pre-builds HTML at build time. SSR/SSG improve initial load and SEO; CSR is simpler but slower first paint.
5
What is the difference between debouncing and throttling?
mid
optimization
Debouncing waits until activity stops before executing (e.g., search after user stops typing). Throttling limits execution to once per interval during continuous activity (e.g., scroll events). Both reduce excessive function calls.