搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox Slow On HTML5 Site

  • 16 个回答
  • 8 人有此问题
  • 14 次查看
  • 最后回复者为 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.

被采纳的解决方案

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).

定位到答案原位置 👍 0

所有回复 (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.

由Ricky Rosario于修改

more options

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

more options

选择的解决方案

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..