We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6933a7a commit f6f9f8bCopy full SHA for f6f9f8b
1 file changed
source/features/show-whitespace.tsx
@@ -49,9 +49,14 @@ function showWhiteSpacesOn(line: Element): void {
49
}
50
51
async function run(): Promise<void> {
52
+ let timeKeeper = Date.now();
53
for (const line of select.all('.blob-code-inner')) {
54
line.classList.add('rgh-showing-whitespace');
55
showWhiteSpacesOn(line);
56
+ if (timeKeeper + 100 < Date.now()) {
57
+ await new Promise(resolve => setTimeout(resolve, 50));
58
+ timeKeeper = Date.now();
59
+ }
60
61
62
0 commit comments