Performance Tips
Cache selectors, use delegation and avoid heavy loops.
Example
var $items = $("#list li");
$items.addClass("a");
$items.each(function () {});Exercise
Cache.
var items = $("li");
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.