dillbyrne / random-agent-spoofer

Firefox addon - Rotates complete browser profiles ( from real browsers / devices ) at a user defined time interval. It includes many extra privacy enhancing options
https://addons.mozilla.org/en-US/firefox/addon/random-agent-spoofer/
GNU General Public License v3.0
616 stars 108 forks source link

Slow startup #448

Open abletor opened 8 years ago

abletor commented 8 years ago

After installing RAS Firefox start up time went up by ~1-2 seconds, and that on my high-end laptop. I profiled RAS init code and found that require(sdk/panel) takes ~200 ms and require(sdk/ui) takes ~600 ms.

During RAS initialization Firefox simply hangs up. I tried to defer init code by 1, 10 seconds but this only caused Firefox to hang up 1, 10 seconds later. It doesn't happen in background or in parallel which is very annoying if you have to restart Firefox.

I have a bunch of other addons installed - they don't slow down start up at all. I checked their code and they all seem to be using overlays for adding their buttons. I know overlays are long time obsolete but what's the point in the newer SDK if it is so slow?

Can it be fixed somehow?

bonbonboi commented 8 years ago

Confirmed here, you would feel it more with a portable FF on a flash disk...

duck57 commented 8 years ago

I wonder if adding an option to start spoofing after initial startup would improve startup times.

whispy commented 8 years ago

I'm finding that this extension slows my startup time by 1 or 2 seconds too.

Nephos commented 7 years ago

Startup is at least 10 seconds slower with this extension, with a SSD :/ I hope you'll find something (I don't know anything about that stuff).