Sunday, September 2, 2018

It's Time to Learn Javascript Timers

Eventually you are going to need to invoke a timer in the browser. Whether it is to update a character counter relating to an input area, refresh a credential, or break a long-running task into pieces, Javascript timers are an essential tool, but are often misunderstood and therefore misused.

Nolan Lawson, who "helps build the Internet at Microsoft," has shared his lesson on Javascript timers on his "Read the Tea Leaves" blog.

In this post, I’m going to give a high-level overview of how these timers work, and when you might want to use them. I’ll also cover the Lodash functions debounce() and throttle(), because I find them useful as well.

Mr. Lawson's blog is worth perusing (i.e. "read (something), typically in a thorough or careful way.") if for no other reason than his experience on at least one browser-development team allows him to share tom unique insights.

No comments:

Post a Comment

9.4Thomas James Daley