Open In App

What is Throttling in JavaScript ?

Last Updated : 07 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Throttling is a technique that is used to throttle or ignore the continuous occurrence of a particular event or task for a particular interval of time and execute the code again after that specified time if the event or the task continues occurring. It can be used with the resize and the scroll events to avoid sending frequent server requests.

Throttling is very commonly used on web pages which loads some data on scroll. It is used to send requests to the server after a particular interval of time if the user continues to scroll the web page. That is why you sometimes see the loading icon when you continuously scroll a web page like Instagram or Facebook.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads