Trying to call WKWebView.evaluateJavaScript on the viewDidAppear method seems to not have any effect until an action like scrolling or just a normal click is performed on th