Tag Archives: Timers

enterval, an automatic setInterval chainer.

Hello internet. Today we’ll be exploring the magical wonders of setInterval. Have you ever worked on a project that needed multiple timers going simultaneously? Have you ever wanted to bind all of those timer callbacks into just one timer without restructuring your code manually? Well, being the Curious George that I [...]
Posted in JavaScript | Tagged | Leave a comment

Problems with Looping through window.setInterval

Look at this code. What do you expect to be the outcome?
Posted in JavaScript, Web Browsers | Also tagged | 3 Comments

Speed up Including Google Analytics

Have you ever noticed that your homepage hangs when including the Google Analytics JavaScript file? I think a few people have noticed a delay. Well, let’s try something different. Let’s create the script node dynamically using DOM methods and put a timeout on this creation so that it inserts just enough delay [...]
Posted in JavaScript | Also tagged | 1 Comment