diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
index d98e9795158..c6f0742264d 100644
--- a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
+++ b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp
@@ -273,7 +273,7 @@ void EventLoop::update_the_rendering()
// FIXME: doc is render-blocked;
// doc's visibility state is "hidden";
- if (document->visibility_state() == "hidden"sv)
+ if (document->hidden())
return true;
// FIXME: doc's rendering is suppressed for view transitions; or