Closed Bug 1809926 Opened 1 year ago Closed 1 year ago

Firefox Translations extension adds noticeable (>1s) delay to browser readiness at launch time

Categories

(Firefox :: Translations, defect)

Firefox 110
Desktop
Linux
defect

Tracking

()

RESOLVED MOVED
Performance Impact ?
Tracking Status
firefox110 --- affected

People

(Reporter: rhill, Unassigned)

Details

Attachments

(3 files)

This is especially noticeable when a content blocker is also enabled, as these will delay webpage load time until they are ready.

Steps to reproduce:

Notice the >1s delay for the restored webpage to open compared to when Firefox Translations is disabled.

Two profiling sessions attached, one with Firefox Translations enabled, the other without Firefox Translations -- all else being the same.

Performance Impact: --- → ?

In case the number of downloaded translations packages matter, I used the dev tools to peruse how many translations packages appear to be present in the Firefox Translations cache storage on my side, and I count 7, the following: deen, enpt, esen, fren, plen, pten, ruen.

The language checker is being loaded and probably checking all the restored pages. The fix here would be to move it into a worker, defer doing this until later, or not running the language detection on tab restore.

The severity field is not set for this bug.
:anatal, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(anatal)

Is it the same without uBlock? IOW is it a delay caused by having both, or is it just a Translations issue?

Severity: -- → S3
Flags: needinfo?(anatal)

There's at least 3 different "translation" implementations atm that took me an instant to figure that this was actually related to the extension, whose codebase and issue tracker is actually on github: https://github.com/mozilla/firefox-translations/issues

I've moved this there along a reference and will close it: https://github.com/mozilla/firefox-translations/issues/666

Thanks rhill!

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → MOVED

Is it the same without uBlock? IOW is it a delay caused by having both, or is it just a Translations issue?

Not sure the delay is noticeable when not using a content blocker which typically holds back first page load. In a profiling session without any other extension than Firefox Translations, I can see the currently active page starts loading while Firefox Translations extension is hogging the CPU in the WebExtensions process (for about 1.7s). So mainly the effect is to delay other extensions' time-to-readiness, which in the case of content blockers causes the whole browser's time-to-readiness to be delayed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: