Closed skfh82 closed 6 months ago
I appreciate your help and support. This way give huge advantage to reduce resource uses :)
I considered short inteveral time also. But, short inteveral time may cause translate api ban because of too many request. I will try it to use it but this feature may can be rollback.
Currently, the extension is relying on setInterval to determine when to fire. This can cause the function to fire an excessive amount of times even when the page is idle, contributing to CPU usage. The problem is worse when more tabs are opened.
Instead, it's better to fire immediately on mouse move, with a delay if the function had recently been fired. Doing this also allows the default time delay to be reduced.