Hello, what is a good way to run a code snippet after the page is loaded, but only just one time?
I use the ready event $(function(){...}); most of the time, but sometimes it fires multiple times (when the DOM changes I think), and rarely there are stuff that I only want to run JUST ONCE per pageload. What is a good way to achieve that? Now I do window.onload = function() {...}, but I hope there is something better. Thanks in advance... -- Richard