Simon Willison’s Weblog

Subscribe

Posts tagged javascript, refactoring in 2019

Filters: Year: 2019 × javascript × refactoring × Sorted by date

Optimizing for the mobile web: Moving from Angular to Preact. Grubhub reduced their mobile web load times from 9-11s to 3-4s by replacing Angular with Preact (and replacing other libraries such as lodash with native JavaScript code). The conversion took 6 months and involved running Angular and Preact simultaneously during the transition—not a huge additional overhead as Preact itself is only 4KB. They used TypeScript throughout and credit it with providing a great deal of confidence and productivity to the overall refactoring.

# 5th August 2019, 12:26 pm / javascript, refactoring, web-performance

Types

Years

Months

Tags