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

		}
	}

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


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