Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymer + Cordova + PhoneGap + iOS = Very Laggy / Slow? #773

Closed
wes opened this issue Sep 26, 2014 · 4 comments
Closed

Polymer + Cordova + PhoneGap + iOS = Very Laggy / Slow? #773

wes opened this issue Sep 26, 2014 · 4 comments

Comments

@wes
Copy link

wes commented Sep 26, 2014

I'm sorry this isn't necessarily a specific bug, but it is something I am noticing as developing an app in Polymer to be deployed as an app via PhoneGap. I have seen it take nearly 30 seconds to render a list of a 100 items. On a browser, its nearly instant.

When using certain things like:

<core-list id="list" data="{{data}}">
        <template>
            <div>stuff</div>
        </template>
</core-list>
@ebidel
Copy link
Contributor

ebidel commented Sep 27, 2014

There are a lot of variables at play here!

What version of iOS? It's important to note that iOS will be running the polyfills (which are inherently slower than the native APIs) and all run JS. To compound the problem, you'll feel another major performance hit running that app inside a UIWebview. That's because Nitro JIT JS engine isn't available outside of Mobile Safari. This can account for a ~3-4x perf hit. So in iOS7, you're running js polyfills, slowly.

In iOS8, the new WKWebView runs JS as fast as mobile Safari

Not saying this helps you very much, but it's important to highlight.

@wes
Copy link
Author

wes commented Sep 27, 2014

I was able to simplify my elements, and this seemed to help.. One of the biggest things was not using core-list and moving to something like

template repeat="{{item in items}}"

It dramatically improved the rendering time, I hope it helps someone. Thanks Eric for your help on this.

@wes wes closed this as completed Sep 27, 2014
@ebidel
Copy link
Contributor

ebidel commented Sep 27, 2014

Thanks. That's important info. @kevinpschaaf has been doing a lot of work on core-list. Were you using the 0.4.1 release or what's in master?

Reopening for now.

@ebidel ebidel reopened this Sep 27, 2014
@wes
Copy link
Author

wes commented Sep 27, 2014

Using master version, just installed using bower.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants