Chapter 1. The Need for Speed

In this chapter, we will learn about the need for executing JavaScript more rapidly, discuss why JavaScript code is traditionally slow, and see what kind of code editors can make us write faster JavaScript without changing our coding style.

Weren't websites always fast?

It seems not too long ago that website performance was important but not really required for most web sites. Even during the early days of the Web, it wasn't uncommon to have a really slow website—not because of connection speeds or server locations or which browser was used, no. In many cases, it was because the JavaScript used to render or create functionality for the pages was slow, very slow. Mostly, this was done because of a lack of minification ...

Get Mastering JavaScript High Performance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.