Actual Interview Study Flashcards
1
Q
What are some ways you can think of to make a webpage faster?
A
- React: make sure everything is rendering efficiently with useCallback, useMemo, memo
- React: reduce prop drilling. Utilize state management better
- Optimize images. There’s online sites that can convert them to smaller size but keep good quality. (ex) tinyPNG)
- Can use srcset; host image based on resolution size
- Lazy loading, in React they released Suspense
- Increase server capacity (Pay for it)
- Minify your files during production
- go to your network / performance tab and do some analyzing
- Lighthouse score can check there
- Image CDN
- Production: Tree Shaking