diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
index e2aa2a78c8..d6455511ce 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp
@@ -139,10 +139,8 @@ void HTMLScriptElement::prepare_script()
auto source_text = child_text_content();
// 6. If the element has no src attribute, and source text is the empty string, then return. The script is not executed.
- if (!has_attribute(HTML::AttributeNames::src) && source_text.is_empty()) {
- dbgln("HTMLScriptElement: Refusing to run empty script.");
+ if (!has_attribute(HTML::AttributeNames::src) && source_text.is_empty())
return;
- }
// 7. If the element is not connected, then return. The script is not executed.
if (!is_connected()) {