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.

inside custom component

Web and WebWorks Development

Reply
Contributor
docaholic
Posts: 41
Registered: ‎05-03-2012
My Device: Blackberry 10 Alpha, Blackberry Bold 9930
My Carrier: Fido

jquery performance issues

I'm currently runing a webworks application that uses jquery to animate a div.

 

The code i'm using looks like this:

 

	$('#mapPanel').animate({
		height:'toggle'
	}, 'fast');

 However, whenever that bit of code is run (when a button is pressed), the animation itself is really choppy, and sometimes doesn't even work at all.

I'm running this on my Dev Alpha device, but in Ripple, the animation looks great.

 

Any ideas on how to solve this? The choppiness is really killing the effect.

 

Thanks!

Please use plain text.
Developer
Nitish_Pheonix
Posts: 29
Registered: ‎09-17-2012
My Device: 9810, 9800, 9700, 9900, 9300
My Carrier: BSNL

Re: jquery performance issues

Hi,
I am also facing the same problem in JQuery in OS 7.0 & 7.1 devices.
But the JQuery is working great in OS 6.0 devices.
I can't figure out what is the real problem.

Please help me ASAP.

Thanks & Regards,
Nitish_Pheonix

Hit like if the above post is helpful to you.
Please Accept this as Solution if the above post is a solution for you.
Please use plain text.
New Contributor
Horangi7
Posts: 6
Registered: ‎01-22-2013
My Device: 9850 / 9930 / PlayBook
My Carrier: Verizon

Re: jquery performance issues

[ Edited ]

I have been looking all over the forum for this issue since experiencing the same problem with JQuery .fadeIn and .animate. Everything looks great and functions as expected using Ripple emulator, but when running on the PlayBook it looks horrible

 

detailWindow.swiperight(function() {
        detailWindow.animate({
	        left: "+=926px",
	        duration: 'slow',
	        easing: 'linear'
	        }, 700, function() {
		        detailWindow.css({ left: '1026px', display: 'none' });
	       });
	myState = 0;
	return;
});

 Above is a snipet from my application.

 

Any ideas would be appreciated, I am trying to get this app wrapped up and this is the only thing I am having issues with.

Please use plain text.
New Contributor
Horangi7
Posts: 6
Registered: ‎01-22-2013
My Device: 9850 / 9930 / PlayBook
My Carrier: Verizon

Re: jquery performance issues

Ended up using Jquery transit to make my animations smoother. Made a big difference on the PlayBook.
Please use plain text.