News for hackers. Stuff that matters.
Re:Why Did Mozilla Remove XUL Add-Ons? by perryizgr8 on Friday August 21, 2020 @02:02AM (#24232426)
> also, some of the changes that Firefox needed to remain competitive with Chrome were going to break most add-ons immediately, possibly all add-ons in the longer term;

Sad part is that we lost extensions and Firefox is still slower, glitchier than Chrome.

Re:Why Did Mozilla Remove XUL Add-Ons? by bayindirh on Friday August 21, 2020 @05:23AM (#24233378)
Note: This is a comment I wrote to another article in HN and it still holds today:

No. Just, no.

I want to share something that I experienced very recently.

I use Firefox and Chrome (just for using Taskboard) at work. I also use Firefox at home. Both systems are Debian. The perceived browser speed was Chrome (Work) > Firefox (Work) > Firefox (Home). I always thought it was about DNS resolution, so I started running DNSMasq at home on an OrangePi Zero but, it didn't make much difference.

Two days ago, my home ADSL modem suddenly died. I replaced it with a more modern version and everything about speed has changed. Now The speed of Firefox at home is equal with the speed of Chrome at Work, Firefox at work is slightly behind.

It can be said that Firefox is much more sensitive to network parameters like DNS response times, but its rendering engine and other capabilities are not behind Chrome.

Re:Why Did Mozilla Remove XUL Add-Ons? by jeroenhd on Friday August 21, 2020 @06:24AM (#24233666)
As an avid Firefox user, the performance difference between the Javascript engines in Chrome and Firefox are always obvious to me.

Firefox's network code, render pipeline, and everything else that gets the document to the screen is either just as fast or even faster than Chrome. However, the Javascript engine leaves something to be desired; the trend to make everything an application has ruined the performance of many sites.

There's also downsides to the way Firefox protects your privacy. If you enable the default privacy blocking, some resources fail to load on websites, making many websites load fallbacks or lag while they're waiting for their ad script to initialize.

Finally, I've noticed Firefox has significant performance issues in video decoding compared to Chrome. This manifests itself as memory leaks and some tabs being frozen (every tab within the same browser subprocess, basically) and can be resolved by killing the process that's been messed up, but it's still an issue for normal use.

All in all I prefer Firefox, but there's still plenty of ways it can catch up to Chrome. If your work involves a lot of web applications, there's no denying that your experience in Chrome will be quicker.

Re:Why Did Mozilla Remove XUL Add-Ons? by Yoric on Saturday August 22, 2020 @11:35AM (#24244790)
> However, the Javascript engine leaves something to be desired; the trend to make everything an application has ruined the performance of many sites.

Out of curiosity, what makes you think that the culprit is the JS engine?

Re:Why Did Mozilla Remove XUL Add-Ons? by jeroenhd on Saturday August 22, 2020 @03:09PM (#24246453)
All websites that heavily rely on Javascript just work better on Chrome for me. Google products, OSM, streaming sites, chat applications, they just all work quicker and smoother on Chrome. Even my own code seems to run into more performance caps on Firefox depending on the behaviour it exhibits.

On plain websites, there's no real difference. When it comes to (messy) JS, problems pop up more in Firefox than in Chrome.

I don't blame the Spidermonkey devs for this, of course, because people just need to write better (less) JS. However, in practice, you do see the difference when you try out Firefox.

Re:Why Did Mozilla Remove XUL Add-Ons? by bayindirh on Friday August 21, 2020 @10:49AM (#24235344)
Thanks for your answer. Being able to discuss these things feel good.

> However, the Javascript engine leaves something to be desired; the trend to make everything an application has ruined the performance of many sites.

I'm pretty bitter about "everything is an application" trend though. Coming from the original web, limited by 56K days creates a lot of "old man yells to cloud" moments, performance wise. However, as a Linux user, I suspect not all of the performance penalty comes from the JS pipeline. Accelerated rendering of webpage is severely lacking in Linux (especially with nVidia proprietary drivers).

I have a COVID-19 tracker (who doesn't in these days) it's at https://hbayindir.github.io/covid-19-turkey/

The graph animations are smooth in Chrome & Firefox for Windows but, not in Firefox for Linux. I think rendering engine is fine, JS is more than good enough, but HW acceleration in Linux needs attention.

> There's also downsides to the way Firefox protects your privacy. If you enable the default privacy blocking, some resources fail to load on websites, making many websites load fallbacks or lag while they're waiting for their ad script to initialize.

It may be but I didn't notice anything to be honest. I'll look out for this.

> Finally, I've noticed Firefox has significant performance issues in video decoding compared to Chrome. This manifests itself as memory leaks and some tabs being frozen (every tab within the same browser subprocess, basically) and can be resolved by killing the process that's been messed up, but it's still an issue for normal use.

I don't experience anything similar in Firefox. Sometimes I leave Youtube open for weeks (because, long music mixes) and nothing stutters or goes awry. Sometimes a tab consumes too much resources (something like reddit or, HN) and it creates input lag while writing into textboxes like this. Everything recovers when I kill the offending tab. Similarly watching 2K and 4K videos over youtube doesn't tax my system at all. Everything is gracefully HW accelerated OTOH, picture in picture implementation of Firefox is so much behind that I can see the frame rate drops below 15FPS most of the time, so it's unusable. I guess, it the FF could HW accelerate everything, the problem will solve itself.

All in all, Firefox has some missing parts and needs some serious work in these parts and FF people looks not very interested in these parts (I'm not very firm on this opinion. This is how it looks from here).

Re:Why Did Mozilla Remove XUL Add-Ons? by jeroenhd on Saturday August 22, 2020 @03:16PM (#24246508)
> I'm pretty bitter about "everything is an application" trend though. Coming from the original web, limited by 56K days creates a lot of "old man yells to cloud" moments, performance wise. However, as a Linux user, I suspect not all of the performance penalty comes from the JS pipeline. Accelerated rendering of webpage is severely lacking in Linux (especially with nVidia proprietary drivers).

I totally a agree.

> It may be but I didn't notice anything to be honest. I'll look out for this.

The worst offender are some AMP sites; they try to use the Google CDN for whatever resource (probably fonts or CSS) and when that fails, wait for the fallback.

> Everything is gracefully HW accelerated OTOH, picture in picture implementation of Firefox is so much behind that I can see the frame rate drops below 15FPS most of the time, so it's unusable.

Interesting. I don't have much trouble with PiP and such, only the memory issues. I suppose it might just be a difference between hardware, drivers and OS/system config.

Re:Why Did Mozilla Remove XUL Add-Ons? by nix23 on Friday August 21, 2020 @05:49AM (#24233493)
> Now The speed of Firefox at home is equal with the speed of Chrome at Work, Firefox at work is slightly behind.

Ehhh ;)