Nefere256 / userscripts

MIT License
0 stars 0 forks source link

Run translations before rendering (to stop flickering) #21

Open Nefere256 opened 1 year ago

Nefere256 commented 1 year ago

Is your feature request related to a problem? Please describe. When the page is loading, it shows Chinese text for a second or two before setting English text. It's confusing an

Describe the solution you'd like The text is in English from the start. Without blinking.

Describe alternatives you've considered There's no way to go around if, unless I close my eyes.

Additional context @run-at annotation may help to start the script before everything.

It would need some tweaking if no libraries are required, and to separate text to translate at the start, and that appears after some time.

Nefere256 commented 1 year ago

may be blocked by https://github.com/Nefere256/userscripts/issues/12. It's better to lessen amount of dependencies. It could be possible to move translating to before page rendering.