Skip to content

Commit

Permalink
perf: reduce debounce to 100 ms
Browse files Browse the repository at this point in the history
rikilele committed May 12, 2022
1 parent c28509d commit d2e8592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contentScript/contentScript.js
Original file line number Diff line number Diff line change
@@ -62,9 +62,9 @@ class PageObserver {
* The `callback` method call will be debounced.
*
* @param {(mutatedNodes: Node[]) => void} callback
* @param {number} ms Minimum debounce time. Defaults to 300 ms.
* @param {number} ms Minimum debounce time. Defaults to 100 ms.
*/
constructor(callback, ms = 300) {
constructor(callback, ms = 100) {
this.#ms = ms;
this.#handleMutation = callback;
this.#observer = new MutationObserver((mutationList) => {

0 comments on commit d2e8592

Please sign in to comment.