zurb / orbit

454 stars 96 forks source link

Slow in Firefox #54

Open vburgett opened 13 years ago

vburgett commented 13 years ago

I'm having an issue with each slide advancing very slowly in Firefox 6.0. It works fine in Safari. I stripped down the code so that the #featured div was not within any other divs and it fixed the problem in Firefox. Any ideas on what this is an indication of? I can't find where I would need to make the adjustment knowing this somehow fixes the problem.

vburgett commented 13 years ago

Looks like it could have something to do with the float attributes that are assigned to the divs that enclose the #feature div.

aaronfay commented 13 years ago

The same issue in Firefox 6.0.2 Ubuntu Linux, advanceSpeed:1700 takes about 20 seconds to get to the next slide, and appears to be close to hanging the browser.

relgit commented 12 years ago

Confirmed on FF 8.0. Introducing Orbit to an existing page also made the other animated elements on that page slow down. Adding display: none; on the timer element seemed to improve it slightly. Removing the other animated elements also improved it a bit. Doing both of the above together brought about a major improvement, though still not the speed stated in advanceSpeed.

relgit commented 12 years ago

After digging a little further the bottleneck in FF seems to be the timer.is(':hidden') command in the Orbit code. It runs on every iteration even if the timer is hidden (This is what checks if it is so). It's more of a jQuery slowdown, though I don't think that the jQuery team intended this command to be run in sequence.

xavio commented 12 years ago

Just ran into the same issue. Anyone found any good solution for this?

mkelly12 commented 12 years ago

Created an issue for this in the Foundation repository: https://github.com/zurb/foundation/issues/344