by untog · 11y ago · 0 comments
Apple have released the WKWebView but last I checked it has a number of bugs/errors that make it very difficult to use.
No page should have so much JS (for ads and such) that without a hyper-fast JS engine it feels like it stopped loading.
IMO, not necessarily. I was playing around with a D3 visualization that ran terribly within the UIWebView, there was really very little I could do about it.
But I won't argue that plenty of sites are overusing JS for rendering etc when they should be leaving that to static HTML.
UiWebView from fb/tw is really the biggest pain point on iOS when most of your traffic come from social media.
The only way I foud to escape it is to add a little bit of js to perform the following :
- test if the browser is an UI webview
- if yes redirect to ftp://(mysite).com
- safari will intercept this uri scheme and try to open the ftp link.
- serve an html page over ftp than just contain a small js script that redirect to the original url.
- the user is back to the original page but on safari and can now browse more modern web content (webgl games?)This is tedious, broke the back button and glimps for half a seconds beforebuser can access my content. I will loved to not have to do it anymore.