hi im not sure where to start on this as events and their handlers is my weakest point in programming. ...
setInterval(function(){
//code goes here
},1000);
as we know this runs in an infinite/loop
my question is if the code inside the function takes longer than one second (e.g: 5 seconds) to finish does the interval on the 2nd,3rd and nth second this causes the script to run slow.
as well as the above: when you click on an element with onclick function it does not run until it is it's scope turn...
is there a way to allow the 1st interval finish then run it again if the scope is 0...
in other words to put a users actions as a priority .
i don't know if im making alot of sense but please comment below and i will try and explain more.