 
 	override func viewWillDisappear(_ animated: Bool) {
 		super.viewWillDisappear(animated)
-		stopMediaPlayback()
+		if let webView = webView {
+			stopMediaPlayback(webView)
+			cancelImageLoad(webView)
+		}
 	}
 	
 	// MARK: Notifications

		guard let webView = webView else { return }
		
		webView.removeFromSuperview()
		webView.evaluateJavaScript("cancelImageLoad();")
		
		webView.navigationDelegate = nil
		webView.uiDelegate = nil
		webView.scrollView.delegate = nil

		}
	}

	func stopMediaPlayback(_ webView: WKWebView) {
		webView.evaluateJavaScript("stopMediaPlayback();")
	}

	func cancelImageLoad(_ webView: WKWebView) {
		webView.evaluateJavaScript("cancelImageLoad();")
	}

	func configureTopShowBarsView() {
		topShowBarsView = UIView()
		topShowBarsView.backgroundColor = .clear
