Randy Peterman
Member since Feb 9, 2011
- Profile: /members/7765-randy-peterman.htm
- URL: http://randypeterman.com
- Comments: 3
Recent Blog Comments By Randy Peterman
-
jQuery Can Provide Queue-Based Promise Objects
Posted on Oct 24, 2011 at 11:11 AM
This is cool because other methods to deal with the timing would involve timeouts, but due to congestion in the single-threaded JS execution order events could trigger out of synch and this removes that problem. Cool!... read more »
-
Exploring Race Conditions In Javascript With SetInterval(), SetTimeout(), And AJAX
Posted on Feb 9, 2011 at 1:08 PM
@Ben, Right, I didn't pick up from your post which kind of race condition you were trying to recreate. The event loop will otherwise handle things in a consistent order. I have run into crazy race conditions with AJAX returns so I just warned about it because it has bitten me more than once :)... read more »
-
Exploring Race Conditions In Javascript With SetInterval(), SetTimeout(), And AJAX
Posted on Feb 9, 2011 at 12:07 PM
Ben et al, It turns out that you can setup race conditions if you're using AJAX and one server response happens faster than the next. Instead of requesting a file that is plain text, request a ColdFusion file that has some sort of delay built into its response that is random. This may trigger a di... read more »