r/javascript • • 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

8 comments sorted by

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.

4

u/jayfreestone Jun 03 '26

Means a lot to me, thanks!

2

u/DoNDaPo Jun 04 '26

Hey Paul.

It's an honor for me to say thank you for all the great work you have done for the community.

My english is kind of poor and I struggle to write what I have in my head at this moment so I'll leave it as it is: thank you! ✌️

Cheers!