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

		}
	}

	func stopMediaPlayback() {
		webView?.evaluateJavaScript("stopMediaPlayback();")
	}
	
	func configureTopShowBarsView() {
		topShowBarsView = UIView()
		topShowBarsView.backgroundColor = .clear

		guard let webView = webView else { return }
		
		webView.removeFromSuperview()
		stopMediaPlayback(webView)
		cancelImageLoad(webView)

		webView.navigationDelegate = nil
		webView.uiDelegate = nil
		webView.scrollView.delegate = nil
