to make something run only the once this is it…
$(".button").one("click", function() {
alert("This will be displayed only once.");
});
OR you can use this as it runs only when loaded.
$(window).load(function(){
// ..
myfunc();
// ..
});











