Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Firefox 10+: poor js performances on a html page loaded from filesystem

43 views
Skip to first unread message

willy...@gmail.com

unread,
May 30, 2012, 4:50:29 AM5/30/12
to
I built a fairly complex javascript framework, based on YUI3, to render Forms in a web page; as I was testing it I got very very disappointed by the speed of execution of this rendering on Firefox 10+; the exact same page on Chrome was running 10x quicker.
Then I tried again, but instead of opening this test page from the filesystem (ie. the address bar showing "file:///..."), I loaded through a local webserver (address bar: "http://....").
To my big surprise and relief, I found the performances on par to Chrome.

Do you guys know if there's a reason for this behaviour? I'm not saying it's a problem, since that javascript will always be served through a web server, but it got me very curious.

Thanks!

Boris Zbarsky

unread,
May 30, 2012, 9:43:27 AM5/30/12
to
On 5/30/12 4:50 AM, willy...@gmail.com wrote:
> Do you guys know if there's a reason for this behaviour?

Some things have special security checks that only happen in a file://
context. But past that, it's really hard to say.

If you can put a zip or tarball of the app somewhere so that I could run
it under a profiler, I could give you a better idea of what's going on.

-Boris
0 new messages