Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Carrier: Vodafone italy

Jquery mobile Webworks app much slower than browser

Hi everybody I just moved from native to Webworks development, i'm experiencing a very annoying issue. The app is not slow itself (i mean during DB and elaboration), the problem is with the UI. I display a simple listview in Jquery mobile: when i open it from the browser directly hosted on my site, it scrolls easily and relatively fast(compared to iphone and android it's slower hoever acceptable), when i pack it in webworks, scrolling the list becomes sluggish and slow.....i feel like this is ridiculous.. any advice? I run it on a OS 6.600 9780 and as adviced to reduce memory usage i'm loading content with JS always into the same page.

Thanks

Please use plain text.
Developer
shism2
Posts: 246
Registered: ‎12-13-2010

Re: Jquery mobile Webworks app much slower than browser

Actually, I get the opposite results. I find that performance in the browser is slower than packaging the app. When I package the application, it becomes alot smoother.

Please use plain text.
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Carrier: Vodafone italy

Re: Jquery mobile Webworks app much slower than browser

mmmh i even see the squarde tiled transparent background come out while i scroll in the webworks app...

Please use plain text.
BlackBerry Development Advisor
jeffheifetz
Posts: 514
Registered: ‎07-18-2011
My Carrier: Rogers

Re: Jquery mobile Webworks app much slower than browser

Hi peterdeka,

 

The truth is that thw browser and WW on the smartphone use two different rendering engines so there are differences between them. I'm surprised to hear its that much slower, but it doesn't surprise me that jquery mobile wasn't optimized for BB. For a great BB UI framework checkout bbui

 

What version of JQuery mobile are you using? I've heard there are major performance boosts in the 1.0 release.

 




1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Carrier: Vodafone italy

Re: Jquery mobile Webworks app much slower than browser

[ Edited ]

Thanks, i'm using the latest version.....when i enable focus scrolling with trackpad i don't see the tiled transparent background appear,however scrolling a list it's a bit slow and onfocus effects handled by JQmobile take a lot to render(obviously we're talking about 100s of millis). I'd like to get it working smooth with jqmobile because the app runs great on other platforms....

however i had a look at bbui and it seems nice, but how can i dynamically refresh elements? i mean in jquery i can call buttonselector.button() to apply jquery ui styling, how do you do it in  bbui? looking at the code seems something undocumented like "button.apply(element)" Thanks a lot

Please use plain text.
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Carrier: Vodafone italy

Re: Jquery mobile Webworks app much slower than browser

[ Edited ]

I implemented my list with BBUI and scrolling is sluggish (slightly better than before), i read that the problem is linked to the fact that scrolling avents are passed between java and webkit in some strange way that produces "echoes". I mean are we serious? is there no solution to this?!? list element's border and background highlighting go each one on it's way!

Please use plain text.
Contributor
peterdeka
Posts: 39
Registered: ‎04-06-2011
My Carrier: Vodafone italy

Webworks list scrolling very slow compared to browser

[ Edited ]

has anyone some advice on this? i'm using a BBUI image list so it's a very basic interface but even scrolling a list of two elements it's horrible! the focus border moves on its own as scroll events where trigered all together every now and then! in the phone's browser runs smooth but in webworks runs (edit) :smileyvery-happy:. I'm getting mad about this. Webworks 2.2 os6

Please use plain text.