7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
Advertisement
  1. Code
  2. JavaScript

JavaScript Loop Optimization

Scroll to top
Read Time: 1 min

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.

Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.