googlearchive / core-iconset-svg

A custom element that enables defining icon sets that contain SVG icons.
2 stars 2 forks source link

svg icons cause 5 second rendering delay in ios8 UIWebView #2

Open semateos opened 10 years ago

semateos commented 10 years ago

I've got a version of the polymer tutorial app running here: http://safe-harbor-2958.herokuapp.com/ - I've replaced the avatars with the same core-iconset-svg component (public/components/avatars.html) that the topeka app uses. I'm experiencing a slow rendering delay (~5s on a new ipod touch) inside of UIWebKit on the icons. To reproduce: 1) view the above link using the Chrome app on iOS8 2) click on the "Sign In" button in the upper right

The avatar icons start out with an opacity and then after a few seconds become active. Before they are active the whole view is unresponsive. The same happens in the main view when you return from the sign-in view.

I'm not seeing the same behavior in the live topeka app - so I'm wondering if there's a known fix - and if there's a way to apply it universally. I'm trying to understand all of the rendering issues with polymer inside of uiwebview so that we can use polymer to build nativized web apps and help others do the same.

You can get the code here: https://github.com/semateos/stimpy-polymer

Let me know if ya'll know anything that could point me in the right direction. Thanks!