Урок-FE4-JS-02.
“Бібліотека Lodash.
Throttle і Debounce.”

Щоб побачити результати роботи скриптів, відкрийте інструменти розробника DevTools!

1.Бібліотека Lodash.

start case

2.Балакучі події (Chatty events).

Scroll me

Number of scroll events

0

3.Throttle (обмежувач частоти).

Scroll me (throttle)

No timing function

0

Throttled

0

4.Debounce (відкладений виклик).

Scroll me (throttle & debounce)

No timing function

0

Throttled

0

Debounced

0

Input (with debounce)

Scroll me (throttle, Trailing Debounce, Leading debounce)

No timing function

0

Throttled

0

Trailing debounce

0

Leading debounce

0

0.Заголовок