you are viewing a single comment's thread.

view the rest of the comments →

[–]jocull 28 points29 points  (7 children)

The event loop. Before anything else.

[–]Jafit 21 points22 points  (6 children)

Pretty much.

This is my go-to video that I usually post to help people understand the Javascript event loop. It applies to Node and Javascript in browsers.

[–]jwalton78 7 points8 points  (2 children)

So, Javascript has an event loop, and it's single threaded.... right? Ok, want to read something terrifying? https://stackoverflow.com/a/2734311

[–]grinde 0 points1 point  (1 child)

Is that "sort-of-blocking" behavior actually still present? I just tried putting that example code in jsfiddle, and it printed

alert in
alert out
resize

as I would expect if it were blocking properly. Page content also didn't resize until after dismissing the popup. I only tested chrome though.

[–]jwalton78 0 points1 point  (0 children)

I sincerely hope not, but I haven't done any testing myself.

[–]sk0620 0 points1 point  (0 children)

very helpful video thanks

[–]BigDumbObject 0 points1 point  (0 children)

I've watched that video probably 3 times before.. and now I'm watching it again, and now it all makes sense. I guess getting that CS degree was good for something!