Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8e4d55fc84
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (20 sloc) 0.77 kb
<script type="text/javascript">
var i = 0;
var x = new Image();
x.src = "" + i;
}, 500);
When an image is preloaded in javascript, the size of the image is never
reported to the javascript garbage collector. If a large image is repeatedly
preloaded but never used, it will not free any of the images until the
garbage collector has run out of space to allocate any new free javascript
variables. This test passes if after a certain point, the number of allocated
images as reported by the caches window stops growing.
Jump to Line
Something went wrong with that request. Please try again.