Monthly Archives: October 2011

Are You Still There?

A scenario: you want to update some content on your page periodically, but you don’t want to waste requests, resources, cycles, etc. on running your script while the user is obviously not interacting with the page. What do you do? … Continue reading

Posted in javascript | Tagged , , , , , , , , , | Leave a comment

Add Stable Merge Sort to Array and jQuery Prototypes

Some browsers’ JavaScript implementations don’t implement a stable sort, but stable sorting can be so handy if you want to, say, sort a table by multiple columns. So here’s a quick and easy way to add an efficient, stable merge … Continue reading

Posted in javascript | Tagged , , , , , , , , , , | Leave a comment