javascript,ios,objective-c,wkwebview,wkwebviewconfiguration
Found a solution, it was simple as I was expecting, I was adding the javascript before the view complete load the content (before the Dom Ready). So I just had to move my code to the delegate method below: webView:didFinishNavigation: (from WKNavigationDelegate) I hope this helps someone....