An Elm Primer for React Developers
/
Part III: Building Real Applications
/
Chapter 17: Performance in Practice
Chapter 17: Performance in Practice
https://leanpub.com/elm-for-react-devs
React.memo, useCallback, and Reconciliation Pain Points
https://leanpub.com/elm-for-react-devs
How Elm’s Virtual DOM Makes Optimization Automatic
https://leanpub.com/elm-for-react-devs
Html.Lazy
https://leanpub.com/elm-for-react-devs
Performance by Default vs Performance by Configuration
https://leanpub.com/elm-for-react-devs
Bundle Sizes and Compilation Targets
https://leanpub.com/elm-for-react-devs
Asset Splitting
https://leanpub.com/elm-for-react-devs
Lazy Loading and Code Splitting
https://leanpub.com/elm-for-react-devs
When and How to Optimize Elm Applications
https://leanpub.com/elm-for-react-devs
Step 1: Profile, Don’t Guess
https://leanpub.com/elm-for-react-devs
Step 2: Check Your Update Function
https://leanpub.com/elm-for-react-devs
Step 3: Use Html.Lazy for Expensive Views
https://leanpub.com/elm-for-react-devs
Step 4: Use Html.Keyed for Lists
https://leanpub.com/elm-for-react-devs
Step 5: Consider the DOM Itself
https://leanpub.com/elm-for-react-devs
What You Don’t Need to Optimize
https://leanpub.com/elm-for-react-devs
elm-optimize-level-2
https://leanpub.com/elm-for-react-devs
Wrapping Up
https://leanpub.com/elm-for-react-devs
Up next
Appendix A: Quick Reference Guide
In this chapter
Chapter 17: Performance in Practice
React.memo, useCallback, and Reconciliation Pain Points
How Elm’s Virtual DOM Makes Optimization Automatic
Performance by Default vs Performance by Configuration
Bundle Sizes and Compilation Targets
Lazy Loading and Code Splitting
When and How to Optimize Elm Applications
elm-optimize-level-2
Wrapping Up