Skip to content

Instantly share code, notes, and snippets.

@cdeutsch
Created October 31, 2013 21:46
Show Gist options
  • Select an option

  • Save cdeutsch/7257753 to your computer and use it in GitHub Desktop.

Select an option

Save cdeutsch/7257753 to your computer and use it in GitHub Desktop.
doImageGet: function(a, b, c, d, e) {
var b = a + b + "&" + this.$.param(c), f = false, a = new Image(1, 1);
a.onload = function() {
f = true;
_MchHlpr.isDefined(e) && e()
};
a.src = b;
if (d > 0)
for (b = (new Date).getTime(); !f; )
if ((new Date).getTime() - b > d)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment