Came across an interview prep question which I hadn’t thought about in a while:

Name a few web optimization techniques.

  • Optimize image files
  • Minify and combine files
  • Use browser caching
  • Use content delivery networks (CDNs)
  • Optimize code execution
  • Enable gzip compression
  • Minimize redirects
  • Optimize third-party scripts and plugins
  • Monitor performance

Oh, and this really nice code logic cheat sheet from leetcode