This is a note about Javascript Performance, by reading the amazing book High Performance JavaScript by Nicholas C. Zakas, which helps developers to identify problem and providing better solution, to improve execution time, downloading, interaction with the DOM, page life cycle, and more.
Concepts such as the scope chain and prototype chain can affect your overall script performance.
DOM interaction is slower than other parts of JavaScript, how repaint and reflow can slow down your code.
Loops and recursion can work against you when it comes to runtime performance.
Poor string-handling performance in browsers, work around methods is explained
User experience, several techniques is discussed to ensure that the user interface remains responsive at all times.
Different data formats can affect Ajax performance and why XMLHttpRequest
isn’t always the best choice.