Cari Bantuan

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Pelajari Lebih Lanjut

Firefox Slow On HTML5 Site

  • 16 balas
  • 8 memiliki masalah ini
  • 4 kunjungan
  • Balasan terakhir oleh bantilan

more options

I don't understand why when I try and look at an HTML5 site in Firefox, Firefox slows down to a crawl.

I have tried all the latest versions including the beta version.

I don't understand why when I try and look at an HTML5 site in Firefox, Firefox slows down to a crawl. I have tried all the latest versions including the beta version.

Solusi terpilih

I will search bugzilla for something related and if I don't find anything I will create a minimal example based off your style and submit it (if you don't mind).

Baca jawaban ini dalam konteks 👍 0

Semua Balasan (16)

more options

Is it only that site? For what it's worth, that is the mobile version. The desktop version (http://thatswebdesign.com/) loads just fine. I am pretty sure that page is doing something pretty intensive and is bogging down the browser.

more options

Thank you for your quick reply.

No, I am the designer of both the desktop and mobile versions. The mobile version has less intensive coding, if anything.

Other than the fact that the desktop version uses XHTML and the mobile version uses HTML5, there is very little difference in the <head> area, and the <body> area has no scripting other than the onclick events on the buttons.

There is one little jQuery script that checks the width of the screen and sets the width of the buttons to adjust, but other than that, there is no other added code difference between the two sites.

more options

Yeah, I was looking at the code now and can't see anything. Maybe it is the CSS gradients causing the issue (my guess).

more options

Firefox doesn't like CSS3 gradients?

more options

It does but I would start by looking at the -moz-* rules for .button span.

Four gradients there. Try removing that and see what happens?

more options

Huh, that was it. But I placed those in there specifically for Firefox. So Firefox is fine with just the webkit definitions?

more options

Also the `-moz-background-size: 3px 3px;`. You are making the browser do a _lot_ of work :-). Maybe it is worth filing a bug.

more options

I think some combination of the things you did made you run into a performance issue in Firefox. I didn't see anything inherently wrong in your CSS.

more options

OK, so you are having me remove all the code that was set up specifically for Firefox?

more options

Maybe you can show a slightly different background design in firefox due to this. I am pretty sure if you don't do the background-size it will be fine. Or old school images would work just fine.

more options

Are there any plans on standardizing Firefox so that the -moz extension is no longer necessary?

more options

Yes! That is part of the standardization process, but it takes a lot longer than you and I would like :-). It took a while for border-radius to not require -moz but it did happen.

Diperbarui oleh Ricky Rosario pada

more options

OK, well if that is the case, do you really think it would be worthwhile to file a bug report?

more options

Solusi Terpilih

I will search bugzilla for something related and if I don't find anything I will create a minimal example based off your style and submit it (if you don't mind).

more options

No, not at all. I really appreciate all your help.

more options

I have this problem too on my HTML5 Games.. It renders perfectly on other browser, but on firefox it's 50% slower..