From 0d6e1d528d6f818d5251b4b2da91ad3ed466bc49 Mon Sep 17 00:00:00 2001 From: Antoine LAURENT Date: Mon, 13 Jan 2025 13:37:29 +0100 Subject: [PATCH] Try adding a debounce --- itou/static/js/gps.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itou/static/js/gps.js b/itou/static/js/gps.js index 430960abc0..ae62e26309 100644 --- a/itou/static/js/gps.js +++ b/itou/static/js/gps.js @@ -20,6 +20,9 @@ htmx.onLoad((target) => { `), + ajax:{ + delay: 250 // wait 250 milliseconds before triggering the request + } }, }); searchUserInputField.on("select2:select", function (e) {