VideoHive

firefox + jquery = messy?

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

hello. we are just starting with jquery and have some serious problem with firefox. every other browser, even ie9, renders better, and not chopped like firefox. firefox with hardware acceleration turned on is rendaring poorly, but with hardware acceleration turned off is just fine. any ideas? ps. just a left right animation with jquery easing plugin.

2356 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says

I usually get that when Firefox goes over ~500k of memory consumption. Does it run smooth when you just open Firefox and have only that tab open?

Oh, and… some code? :)

461 posts
  • Author had a File in an Envato Bundle
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 3-4 years
  • India
+1 more
SaurabhSharma says

Most possibly due to CSS3 effects. Like, box shadows on big block elements or a large number of elements using the box shadow using CSS3 .

1182 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
campolar says

A link would help :)

2356 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says

Hmmm, works smooth for me in both Firefox 4 and Chrome latest…

Again, could you take a look at Firefox’s load in Task Manager?

P.S.: I have hardware acceleration turned off in Firefox.

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

Hmmm, works smooth for me in both Firefox 4 and Chrome latest…

Again, could you take a look at Firefox’s load in Task Manager?

P.S.: I have hardware acceleration turned off in Firefox.
Turn it on and see the baby go. That is the problem. It’s default on so customers will see it choppy.
2356 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says

Turn it on and see the baby go. That is the problem. It’s default on so customers will see it choppy.

Crap…

Another one to add to my Firefox hate list.

Anyway, a few things I’d try:

  • use latest jQuery (1.6)
  • use for() instead of $.each()
  • use IDs instead of classes, since jQuery uses the native getElementByID() method (faster queries)
2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says


Turn it on and see the baby go. That is the problem. It’s default on so customers will see it choppy.

Crap…

Another one to add to my Firefox hate list.

Anyway, a few things I’d try:

  • use latest jQuery (1.6)
  • use for() instead of $.each()
  • use IDs instead of classes, since jQuery uses the native getElementByID() method (faster queries)

Thanks for the ideas. We wanted to use classes for multiple instances. But this is an easing problem not something to do with the element creation.

2356 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says

But this is an easing problem not something to do with the element creation.

...easing problem which is, in the end, handled by… jQuery :)

You could try and log them with console.time() and see if any of the last 2 ideas impact your script ;)

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says


But this is an easing problem not something to do with the element creation.

...easing problem which is, in the end, handled by… jQuery :)

You could try and log them with console.time() and see if any of the last 2 ideas impact your script ;)
You know what is the funny thing? Mootools has no problems!!
by
by
by
by
by