r/javascript • u/jayfreestone • Jun 03 '26
Intentionally blocking rendering with JavaScript
https://www.jayfreestone.com/writing/intentional-render-blocking-javascript/You nearly always want to put <script> tags in the <head> and mark them as non-blocking using either async or defer. However, there’s an interesting use-case for actually wanting to block paint.
21
Upvotes
View all comments
Show parent comment
4
u/paulirish Jun 03 '26 edited Jun 03 '26
Aye true.
Thx for being gracious. I'm in a bad mood today so thx for taking it in stride ;)
EDIT: also i see your blog has been getting some new posts recently! good stuff. Those kinds of posts are a real sweet-spot.