JavaScript Loop Optimization

In this video, we'll look at some steps we can take to optimize our for loops so they are as performant as possible. We're going to be doing this through the use of a demo web application, three different browsers with tests, and sample code.

Watch the Video

A Quick Recap

Recall in the video, we attempted to answer the following questions:

  1. What is the fastest way to iterate through a collection of elements?
  2. Why is this important to know?
  3. Does the type of data you're iterating through matter?

Through the use of the video, the sample code available on GitHub, and the video linked above, you should be able to study what we've done and apply it with future work that you have with JavaScript, loops, and large data sets.

Tags:

Comments

Related Articles