From the source
Lovable describes how upgrading to Claude 3.7 Sonnet caused its Diff Viewer to freeze when displaying 15+ modified files, because each CodeMirror instance takes 20-50ms to initialize and blocks the browser.
The team implemented time slicing in React, rendering files in batches of two with 50ms delays, which turns one long blocking task into several shorter ones and keeps the interface responsive.






