Skip to content

Commit

Permalink
Try adding a debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
tonial committed Jan 13, 2025
1 parent a73e437 commit 0d6e1d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions itou/static/js/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ htmx.onLoad((target) => {
</a>
</div>
`),
ajax:{
delay: 250 // wait 250 milliseconds before triggering the request
}
},
});
searchUserInputField.on("select2:select", function (e) {
Expand Down

0 comments on commit 0d6e1d5

Please sign in to comment.