When It Makes Sense to Block the Main Thread in JavaScript
Originally published on Smashing Magazine

Summary & Key Takeaways
The article questions the absolute rule of never blocking the browser's main thread. It presents a specific use case involving a screenshot extension. The author argues that blocking the main thread was the correct decision in this scenario. The piece provides detailed reasoning for making an exception to the common best practice. It encourages a nuanced understanding of web performance rules.
Our Commentary
This is the kind of article we love. Challenging dogma with real-world scenarios. "Never block the main thread" is a great rule of thumb, but sometimes, just sometimes, you have to break it. It's about understanding the why behind the rules, not just blindly following them. I'm genuinely curious about this specific use case.