setinterval   111

« earlier    

javascript - execute the first time the setInterval without delay - Stack Overflow
function foo() {
// do stuff
// ...

// and schedule a repeat
setTimeout(foo, delay);
}

// start the cycle
foo();
jquery  pch  setinterval 
october 2014 by outkast
Does JavaScript setInterval() method cause memory leak? - Stack Overflow
tl;dr IMO there is no memory leak. The positive slope is simply the effect of setInterval and setTimeout. The garbage is collected, as seen by sawtooth patterns, meaning by definition there is no memory leak. (I think).
StackExchange  StackOverflow  JavaScript  performance  optimisation  memory  setTimeout  setInterval  time 
september 2014 by coffeebucket
Avoiding JavaScript setTimeout and setInterval Problems | OnSIP
We quite simply have to subject them to the same delays. We do this by setting exactly one global timed function and implementing a function queue such that when a function’s given time target is reached, we execute it.
JavaScript  time  timer  setInterval  setTimeout  schedule 
august 2014 by coffeebucket
javascript - setTimeout or setInterval? - Stack Overflow
The difference is subtle, I believe the setInterval code executes every 1000ms exactly, while the setTimeout waits 1000ms, runs the function, which takes some ms, then sets another timeout. So the wait period is actually greater than 1000ms.
StackExchange  StackOverflow  JavaScript  time  timer  setInterval  setTimeout 
august 2014 by coffeebucket

« earlier    

related tags

$timeout  2009  2011  @toread  __john  ajax  angularjs  animation  animationframe  api  apply  backbone  background  blog  bookmarks  bookmarks_bar  browser  bug  canvas  chrome  clearinterval  closure  code  coding  coffeescript  comparision  correcting  countdown  delay  dev  development  dom  event-loop  event  events  example  execution  exist  exists  firefox  fix  fps  frames  function  game-loop  game-timer  gamedev  github  global  gofrontrend  google  graph  guide  hooks  howto  html5  idle  ie  image  imported  interval  intervals  ios  irish  issue  javascript  jquery  js  library  list  loop  mac  mdn  memoization  memory  mobile  multitasking  namespace  nexttick  nodejs  object  objects  onlyonce  oo  opera  optimisation  pagevisibility  patterns  paul  pause  pauze  pch  performance  periodical  pj:glaxal  plugin  plugins  polling  programming  prowy  react  reactjs  recursive  reference  request  requestanimationframe  resig  safari  schedule  set  sett  settimeout  settimer  settimout  snippets  stackexchange  stackoverflow  test  this  thread  time  timed  timeout  timer  timers  timing  timout  tip  tipp  tips  toread  trigger  tutorial  tutorials  visibility  w3c  wait  web  webdesign  webdev  webperf 

Copy this bookmark:



description:


tags: