for loop

Comparing performance of javascript forEach and for loop on array of items

Introduction Last week i had to optimize javascript code that didn’t perform well enough in Internet explorer (11). Chrome was also not performing very well, so i started searching for performance gains. There were many¬†Arrays in code and there where many forEach loops. I changed some foreach loops to for loops and performance improved quite […]