Post

Replies

Boosts

Views

Activity

Reply to iOS 14 WKWebView loads content has a siginificant delay.
In July 2022 I am still experiencing 30s (32-second, as best I can tell) delays when a user clicks on a link. There is no network delay and no DNS translation delay, since the web server is running in a thread in the application itself and the URL includes the IP address 127.0.0.1 so no DNS translation is needed. It really takes 32s for wkWebView to follow the link!!! In comparison, using the deprecated UIWebView works just fine, meaning there is no noticeable delay when clicking on a link. In contrast, using the recommended wkWebView consistently shows the same ~30s delay when clicking on a link. I've observed this on both an iPhone running iOS 15.6 and the simulator running iOS 15.5. I am using the latest Xcode, version 13.4.1. While the app is frozen waiting for the link to be followed, in Xcode's debug window I occasionally get the message "Discarding message for event 0 because of too many unprocessed messages". There is obviously a purposeful 32s delay built into some wkWebView link-following code. How can I avoid this delay?
Jul ’22