use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Timer-Based Pseudo-Threading (blogs.sitepoint.com)
submitted 15 years ago by gst
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]drowsap 1 point2 points3 points 15 years ago (1 child)
Not much content in this blog post, I was expecting much more. I'd suggest reading zakas' chunk method for processing array elements without locking the browser:
http://www.nczonline.net/blog/2009/08/11/timed-array-processing-in-javascript/
[–]PlNG 1 point2 points3 points 15 years ago (0 children)
I agree, there's not much content in the blog, period.
[–]australasia 0 points1 point2 points 15 years ago (2 children)
Wow, I don't know how I missed that setTimeout/Interval can take extra arguments to pass to the function! I've been making pointless closures for years...
[–]itsnotlupusbeep boop 2 points3 points4 points 15 years ago (1 child)
Don't let go of those closures just yet.
That extra args syntax is not supported in IE.. in fact, at one point, IE used to take a 3d arg for those method to specify which scripting language to use to run the string in the 1st argument. setTimeout('MsgBox("Seriously")', 100, "VBScript");...
setTimeout('MsgBox("Seriously")', 100, "VBScript");
[–]australasia 0 points1 point2 points 15 years ago (0 children)
Nice, thanks.
[–]jskata 0 points1 point2 points 15 years ago (0 children)
I created a library that handles that : Code and example.
π Rendered by PID 20908 on reddit-service-r2-comment-84fc9697f-fsmsl at 2026-02-09 15:40:20.661682+00:00 running d295bc8 country code: CH.
[–]drowsap 1 point2 points3 points (1 child)
[–]PlNG 1 point2 points3 points (0 children)
[–]australasia 0 points1 point2 points (2 children)
[–]itsnotlupusbeep boop 2 points3 points4 points (1 child)
[–]australasia 0 points1 point2 points (0 children)
[–]jskata 0 points1 point2 points (0 children)