4 ms·
Performance of which Safari? My biggest problem is that webviews in Facebook/Twitter use a UIWebView that doesn't have the Nitro JS engine. That absolutely hamm
by untog 11y ago
Performance of which Safari? My biggest problem is that webviews in Facebook/Twitter use a UIWebView that doesn't have the Nitro JS engine. That absolutely hammers performance. If you have a lot of traffic coming from social and are testing in Safari proper, you're not testing in the environment your users are experiencing your site.
Apple have released the WKWebView but last I checked it has a number of bugs/errors that make it very difficult to use.
- zw 11y ago`WKWebView` has issues that made it untenable for use as a web browser last year, but there's nothing I'm aware of preventing its use for common in-app browsers.
- MBCook 11y agoIt's AMAZING what a difference that can make, which really just shows how terribly written the JS on most sites is. It's often faster when pulling up an article in Twitterrific to have it open in Safari than to try to let it finish 'loading' in the web view. No page should have so much JS (for ads and such) that without a hyper-fast JS engine it feels like it stopped loading.
- untog 11y agowhich really just shows how terribly written the JS on most sites is 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.
- MBCook 11y agoVisualizations and demos and games and such make sense to me. But when the page has finished loading and looks like every other page of text with some image ads? Yeah you didn't need that JS did you.
- pierre 11y agoUiWebView 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.
- pierre 11y agoUiWebView 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.