Skip to content

Instantly share code, notes, and snippets.

@lalunamel
Last active May 23, 2018 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lalunamel/ba4b65da99539c49f4b9a655034d9c69 to your computer and use it in GitHub Desktop.
Save lalunamel/ba4b65da99539c49f4b9a655034d9c69 to your computer and use it in GitHub Desktop.
Turing - Performance
# Performance
http://frontend.turing.io/lessons/module-4/intro-to-performance.html
## Agenda
- What are some strategies you use to make your websites performant?
- Take five minutes to think about this scenario:
- I load a website. It's slow. Why's it slow?
- Then, have students question me and investigate/troubleshoot the problem
- Talk about how performance is a game of tradeoffs
- Talk about how performance is a user experience problem
- Slow train example (cost of upgrade vs cost of hiring ppl to go around handing out drinks)
- Talk about how performance is not a user experience problem
- See: stock trading
- General themes in making things performant
- Show progress
- Don't do O(n^2) or O(n^n)
- Only wait for the things you need right now (Lazy Loading)
- Understand the tradeoffs between space and complexity/run time
- Use slow resources efficiently
- Load up your fav heavy website and analyize the performance using chrome dev tools
- Go thru lesson
- Go on tangents about
- Big O notation
- Database queries
- Network calls
- Rendering bottlenecks
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment