Brain Food
  • Brain Food
  • pages
    • Brain Food
    • docs
      • Developer Resources
      • book-notes
        • Eloquent Javascript - Marijn Haverbeke
        • Range - David Epstein
      • computer-science
        • The Impostor's Handbook - Rob Conery
      • javascript
        • Node JS
        • You Don't Know JS Yet (2nd Edition ) - Kyle Simpson
        • react
          • React Server Components
      • reading
        • 10 Thoughts From 100 Books
      • self-development
        • Personal OKRs - 2021 (July)
      • software-development
        • Advice to Myself When Starting as a Software Developer - Gergely Orosz
        • on-software-development
        • What Silicon Valley "Gets" About Software Engineers - Gergely Orosz
      • typescript
        • TypeScript Fundamentals
      • web
        • Performance Optimization
Powered by GitBook
On this page
  • 3 Keys to Performance
  • Frontend Performance
  • Critical Render Path
  • Optimized Code (Code Splitting)
  • Progressive Web App
  • File Transfer
  • Minimize Files
  • Minimize Delivery
  • Backend
  • CDNs
  • Caching
  • Loading Balancing
  • DB Scaling
  • GZIP

Was this helpful?

  1. pages
  2. docs
  3. web

Performance Optimization

3 Keys to Performance

  1. Improve client-side performance

  2. Improve file transfer over the wire (i.e. network latency)

  3. Improve backend processing

Focus on the most important potential performance bottlenecks first.

Frontend Performance

Critical Render Path

Optimized Code (Code Splitting)

Progressive Web App

File Transfer

Minimize Files

Minimizing the file size of the different files that we ship to the browser will improve the performance of a website. We can reduce the file size for:

Text. JS, CSS and HTML files.

Images

Image optimization is more difficult, but it's a common reason for bloated websites.

  • JPG: complex images

  • PNG: limit number of colors that you can use and are smaller in size than JPGs; good for logos

  • SVG: vector graphics; designers work with on Adobe, Sketch, etc; you can expand an SVG to several times its size and it will retain its details; can be customized with CSS

Minimize Delivery

Backend

CDNs

Caching

Loading Balancing

DB Scaling

GZIP

Previousweb

Last updated 2 years ago

Was this helpful?

: similar to PNG but superior lossless and lossy compression for images on the web

: better compression efficiency than JPG as well as better detail preservation

WEBP
AVIF