This repository contains the code examples I used in the JS Profiling Talk I gave for my colleagues at Т—Ж.
There are 4 main examples, each demonstrating different aspects of React performance optimization:
todo-list
has no performance issues, used to explain the profile flamegraphimage-gallery
illustrates issues caused by poor DOM manipulation practices and inefficient algorithmschart
demonstrates layout thrashing by forced reflowsdata-viewer
showcases performance issues caused by memory leaks
main
branch contains examples with performance issuesfinal
branch has the examples that have been fixed
Run the script:
git clone https://github.com/vpukhanov/js-profiling-talk
cd js-profiling-talk
npm install
npm start
Then open http://localhost:8080 in your browser