WebView White screen after splashscreen XCODE

I have a problem loading my app. The launchscreen is displayed then a white screen and then my webview. I would like to know if you have a solution. I think I should check the data of the webview but I don't know how to do it in Xcode.

import UIKit
import WebKit

class ViewController: UIViewController {
    
    let webView: WKWebView = {
        let prefs = WKWebpagePreferences()
        prefs.allowsContentJavaScript = true
        let configuration = WKWebViewConfiguration()
        configuration.defaultWebpagePreferences = prefs
        let webView = WKWebView(frame: .zero, configuration: configuration)
        webView.scrollView.minimumZoomScale = 1.0
        webView.scrollView.maximumZoomScale = 1.0
        webView.scrollView.showsHorizontalScrollIndicator = false;
        webView.scrollView.showsVerticalScrollIndicator = false;
        return webView
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(webView)
        
        guard let url = URL(string: "https://myURL.com") else {
            return }
        // Do any additional setup after loading the view.
        webView.load(URLRequest(url: url))
        
        DispatchQueue.main.asyncAfter(deadline: .now()+5){
            self.webView.evaluateJavaScript("document.body.innerHTML") {
                result, error in guard let html = result as? String, error == nil else {
                    return
                }
            print(html)
            }
        }
    }
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        webView.frame = view.bounds
    }

}