Read more

Rate Limiting with JavaScript

Sometimes you need to be alerted when some event or action happens, but the event or action could happen multiple times in quick succession. A perfect example of this is window.onscroll. The window.onscroll event fires entirely too much. Not only that, it fires inconsistently across browsers. This has been talked about before. Here, I offer a solution:

Read the rest of this entry »

Read more

Profiling with dojox.analytics

You can complement your existing profiling tools (e.g as supplied by Firebug, IE8 Developer Tools) by using dojox.analytics to gather just the data you are interested in, and log it at the server.
Read the rest of this entry »