Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FF maxes out CPU usage with JQuery Slideshow

Status
Not open for further replies.

vacunita

Programmer
Aug 2, 2001
9,166
MX
I've looking at this for far too long now, and still have no idea why its doing what its doing. [hairpull3]

Website parked for the time being here:

The Website, has been checked for Validation, both CSS and XHTML, and for reference HTML 5.

The problem seems to only happen in Firefox 4.

When the page loads, everything works fine, but after a few moments the CPU spikes to 100% usage. And stays there until I either click on a different tab in FF, or close the tab. In either case CPU usage returns to the usual 3 to 7 percent.

IE 7/8, Chrome, and Safari have no issues.

If I take out the jquery slideshow, simply by adding a display:none to its CSS then there's no spike. Everything works normally.

Here's the kicker though, if I place the slideshow in an empty file it works fine. Not sure what the underlying issue is now. Everything looks fine, the slideshow works everywhere else.

I'm out of ideas. So if anybody can find anything wrong with it, I'd appreciate any insight and cookie and a cold brew on me [cheers]

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Finally Figured it out. For future reference, it was the float that did it. As soon as I removed the float:left from the parent container, it stopped spiking the CPU.

Might need to submit a bug report to Mozilla.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Hmm, interesting. If I float the object or anything its in, it spikes to 100%. It might be that my test PC is a little older and slower and so the spike is more noticeable, than on newer faster multiple cored CPU's.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top