-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: causes the browser to become unresponsive on pages containing a large number of kanji #16
Comments
The reason has not yet been determined... However, this issue has been alleviated through the "On-off Auto Mode" option introduced in A temporary solution is to turn off automatic mode for such large pages, for example switching |
Maybe it can automatically detect when the page is larger than a certain value (such as 500KB) and turn off Auto Mode? |
This bug is caused by reflow. |
Closed by e1cd662 const encoder = new TextEncoder();
const utf8Bytes = encoder.encode(document.documentElement.outerHTML);
const htmlSize = utf8Bytes.length / 1024; // KB
if (htmlSize > 500) {
...
return
} |
There is a problem with the current script execution time. The DOM is not loaded completely, which will cause the calculated value of Um... this issue is likely to be unresolved, and this solution is easily bypassed because it is not sure what value Well, set the selcetor rule corresponding to It is uncommon for websites like Wikipedia to have over 500KB of UTF-8 encoded plain text, and these means should be sufficient. |
The |
Describe the bug
Vicious bugs extremely seriously affect the user experience and must be fixed.
Reproduction
Example Site
Expected behavior
The browser will not become unresponsive.
Browser
Chrome
System Info
Validations
The text was updated successfully, but these errors were encountered: