diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp index ac1215e92c9804a..2b2723de317ae4f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -838,7 +838,13 @@ void HTMLImageElement::handle_failed_fetch() void HTMLImageElement::restart_the_animation() { m_current_frame_index = 0; - m_animation_timer->start(); + + auto image_data = m_current_request->image_data(); + if (image_data && image_data->frame_count() > 1) { + m_animation_timer->start(); + } else { + m_animation_timer->stop(); + } } // https://html.spec.whatwg.org/multipage/images.html#update-the-source-set