Optimize long tasks Stay organized with collections Save and categorize content based on your preferences. You've been told "don't block the main thread" and "break up your long tasks", but what does it mean to do those things? Common advice for keeping JavaScript apps fast tends to boil down to the following advice: "Don't block the main thread." "Break up your long tasks." This is great advice,
![Optimize long tasks | Articles | web.dev](https://cdn-ak-scissors.b.st-hatena.com/image/square/2ffd4a1ec869cf44d782865db6f9676d0312b09c/height=288;version=1;width=512/https%3A%2F%2Fweb.dev%2Fstatic%2Farticles%2Foptimize-long-tasks%2Fimage%2Fthumbnail.jpg)