How To Install libjs-jquery-throttle-debounce on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libjs-jquery-throttle-debounce
on Ubuntu 20.04.
What is libjs-jquery-throttle-debounce
libjs-jquery-throttle-debounce is:
jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways:
- Passing a ‘delay’ and ‘callback’ to ‘$.throttle’ returns a new function that will execute no more than once every ‘delay’ milliseconds.
- Passing a ‘delay’ and ‘callback’ to ‘$.debounce’ returns a new function that will execute only once, coalescing multiple sequential calls into a single execution at either the very beginning or end.
jQuery isn’t actually required for this library, because nothing internal uses any jQuery methods or properties. jQuery is just used as a namespace under which these methods can exist.
This package installs the runtime library.
There are three methods to install libjs-jquery-throttle-debounce
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libjs-jquery-throttle-debounce Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libjs-jquery-throttle-debounce
using apt-get
by running the following command:
sudo apt-get -y install libjs-jquery-throttle-debounce
Install libjs-jquery-throttle-debounce Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjs-jquery-throttle-debounce
using apt
by running the following command:
sudo apt -y install libjs-jquery-throttle-debounce
Install libjs-jquery-throttle-debounce Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libjs-jquery-throttle-debounce
using aptitude
by running the following command:
sudo aptitude -y install libjs-jquery-throttle-debounce
How To Uninstall libjs-jquery-throttle-debounce on Ubuntu 20.04
To uninstall only the libjs-jquery-throttle-debounce
package we can use the following command:
sudo apt-get remove libjs-jquery-throttle-debounce
Uninstall libjs-jquery-throttle-debounce And Its Dependencies
To uninstall libjs-jquery-throttle-debounce
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libjs-jquery-throttle-debounce
Remove libjs-jquery-throttle-debounce Configurations and Data
To remove libjs-jquery-throttle-debounce
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libjs-jquery-throttle-debounce
Remove libjs-jquery-throttle-debounce configuration, data, and all of its dependencies
We can use the following command to remove libjs-jquery-throttle-debounce
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjs-jquery-throttle-debounce
References
Summary
In this tutorial we learn how to install libjs-jquery-throttle-debounce
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.