diff --git a/qutebrowser/html/back.html b/qutebrowser/html/back.html
index 46945ab65..894427800 100644
--- a/qutebrowser/html/back.html
+++ b/qutebrowser/html/back.html
@@ -26,7 +26,7 @@ function prepare_restore() {
go_back();
return;
}
-
+
document.addEventListener("visibilitychange", go_back);
}