A Practical Guide to tree-shaking
A task-oriented walkthrough with working examples you can copy into a real project. Compares the two approaches we tried.
PinMaking things load and run faster.
25 articles
A task-oriented walkthrough with working examples you can copy into a real project. Compares the two approaches we tried.
PinOld assumptions, new constraints, and a proposal that has been working in production. Calls out the assumptions that quietly stopped holding.
PinA repeatable process for isolating the cause, with the tools that actually help. Includes a short section on debugging it.
PinA task-oriented walkthrough with working examples you can copy into a real project. Works the same way in every current browser.
PinCovers the subtle behaviours that pass every test and then break in production. Written after three production incidents with the same root cause.
PinWhat broke, what we measured, and the architectural change that fixed it. Covers the case most tutorials leave out.
PinAn approach that trades a little power for a lot of clarity. Covers the case most tutorials leave out.
PinThe shortest honest path from blank file to working implementation. Every example runs in the browser with no build step. (2)
PinA repeatable process for isolating the cause, with the tools that actually help. Includes the measurements that changed our approach.
PinAn approach that trades a little power for a lot of clarity. Includes the benchmark we used to settle the argument. (2)
PinPatterns, anti-patterns, and the questions to ask before you commit to a direction. Every example runs in the browser with no build step.
PinWhat broke, what we measured, and the architectural change that fixed it. Explains the reasoning, not just the syntax.
PinWhat the framework was doing for you, and what you can do yourself. Reflects two years of running this in production.
PinThe trade-offs behind a technique that appears simple in isolation. Includes the before-and-after numbers from our own codebase.
PinExplains how svg actually behaves, what changed recently, and where the old advice still holds. Written after three production incidents with the same root cause.
PinWhat the framework was doing for you, and what you can do yourself. Shows the failure mode that made us rewrite it.
PinWhat broke, what we measured, and the architectural change that fixed it. Notes where the spec and real browsers disagree. (3)
PinPatterns, anti-patterns, and the questions to ask before you commit to a direction. Works the same way in every current browser.
PinCovers the subtle behaviours that pass every test and then break in production. Ends with what we would do differently today.
PinCovers the subtle behaviours that pass every test and then break in production. Includes the before-and-after numbers from our own codebase.
PinWhat broke, what we measured, and the architectural change that fixed it. Every example runs in the browser with no build step.
PinThe shortest honest path from blank file to working implementation. Calls out the assumptions that quietly stopped holding.
PinThe shortest honest path from blank file to working implementation. Every example runs in the browser with no build step. (3)
PinAn approach that trades a little power for a lot of clarity. Calls out the assumptions that quietly stopped holding.
PinPatterns, anti-patterns, and the questions to ask before you commit to a direction. Written for readers who already know the basics. (2)
Pin