Possible stackoverflow in my code?
Hi, I'm trying to make a vertical image-scroller with mouse kind-of-tracking detection, and I'm doing it good so far. You can have a look at
http://www.bodegascampos.org/atmoshpera/ It's at the top of the page and it's scrolling a few images (currently 3).
Anyways, I detected 2 bugs that I don't know how to fix, so I'll be glad if somebody could help me with this.
First bug: Sometimes pictures don't load (the "Loading" div just stays there). Can't reproduce it always, but I'm pretty sure that it has something to do with the way jQuery detects wherever an img is loaded, has finished loading, etc...
Second bug: This one is 100% reproducible, but I can't find where it comes from. Just open the page that I posted and leave it for some time. It will eventually crash. This is tested on IE6 and 7, and it takes ~20min to crash. The crash message is "Stack out of memory at line X".
A runnable example is uploaded here: http://jsbin.com/azeto4/5/
Regards