diff --git a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index 0699d16b64e..435787982d4 100644 --- a/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -73,7 +73,8 @@ void HTMLLinkElement::inserted() // The appropriate times to fetch and process this type of link are: // - When the external resource link is created on a link element that is already browsing-context connected. // - When the external resource link's link element becomes browsing-context connected. - fetch_and_process_linked_resource(); + if (is_browsing_context_connected()) + fetch_and_process_linked_resource(); } // FIXME: Follow spec for fetching and processing these attributes as well