Available resources in JavaScript

First, let's figure out what resources the site consumes. These resources are processor time, RAM and the load on the Internet channel.

CPU time is the time it takes for the computer's processor to execute your script. This is the factor that affects the running time of your JavaScript code. The more time the processor will execute your script, the longer the pages of your site will be loaded.

RAM, although it doesn't directly affect page loading speed, is also a valuable resource that needs to be saved.

The load on the Internet channel is determined by the amount of data that we transfer from the server to the user's computer. This parameter significantly affects the site loading speed.

In the next lessons we will learn how to save these resources.