I'm making a lightbox, do I need to use the
$(window.top).unload(function() { .. });
to do clean up of variables, or will all browsers automatically clean up everything and reset memory and what not?
Do I need to bother or will the browser do it for me? What with all the memory leaks and all..
Edit: I attached a lot of data to div elements. So do I need to do removeData at unload?