diff --git a/qutebrowser/html/settings.html b/qutebrowser/html/settings.html
index f59fd8cfe..2211ef457 100644
--- a/qutebrowser/html/settings.html
+++ b/qutebrowser/html/settings.html
@@ -11,8 +11,6 @@ var cset = function(option, value) {
xhr.send();
}
-const search = debounce(() => searchOption())
-
// Create a delay while the user types
const debounce = (func, timeout=200) => {
let timer;
@@ -22,6 +20,8 @@ const debounce = (func, timeout=200) => {
}
}
+const search = debounce(() => searchOption())
+
/* First sort the options' names back into alphabetical order. Make them invisible.
Filter first by name, then by short description and finally by long description.
Display them in this order.*/