Add an IntersectionObserver to prioritize translations
Categories
(Firefox :: Translations, enhancement, P3)
Tracking
()
People
(Reporter: gregtatum, Unassigned)
References
(Blocks 3 open bugs)
Details
Translations are CPU-intensive and take time. This means that they can be bad for power usage and battery life. The current implementation manually checks the bounding client rect. Rather than doing this we should use an IntersectionObserver to decide what to translate. This observer should continuously adjust the WorkQueue so that only the necessary translations are done.
This should cut down on a very large percentage of translations that a user will never see.
Reporter | ||
Updated•10 months ago
|
Comment 1•6 months ago
|
||
Maybe this will help improve performance when translating Wikipedia popups (see bug 1845776).
Comment 2•6 months ago
|
||
Hi Greg, please where can i find the file for the bug ?
Reporter | ||
Comment 4•6 months ago
|
||
peterodejobi9: Here are some useful links.
Docs: https://firefox-source-docs.mozilla.org/toolkit/components/translations/index.html
Browser code: https://searchfox.org/mozilla-central/source/browser/components/translations
Toolkit code: https://searchfox.org/mozilla-central/source/toolkit/components/translations
Updated•6 months ago
|
Comment 5•6 months ago
|
||
Okay thank you i am reading the documentation and trying to understand the code code so i can work on submitting a patch
Description
•