Skip to content

Commit f793563

Browse files
committed
Update comments
1 parent cbcf912 commit f793563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/article-sequence-optimizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* article-sequence-optimizer.js
33
* * Strategy:
4-
* 1. Iframes/Ads -> CSS content-visibility ( Prevents reloads/flicker )
4+
* 1. Iframes (ignore ads) -> CSS content-visibility ( Prevents reloads/flicker )
55
* 2. Text/Images -> DOM Detachment ( Reduces DOM size/INP )
66
* 3. Security -> Uses direct node references ( No innerHTML/XSS risk )
77
* 4. Stability -> Implements LRU Caching to prevent memory leaks
@@ -66,7 +66,7 @@
6666
}
6767

6868
if ( hasEmbeds( el ) ) {
69-
// STRATEGY A: IFRAME ( CSS Hide ) - Secure against ad re-triggering
69+
// STRATEGY A: IFRAME ( CSS Hide ) - Secure against emmbeds re-initialization
7070
el.classList.add( 'inp-article-visibility-optimized' );
7171
} else {
7272
// STRATEGY B: DETACHMENT ( Memory Move ) - Secure against XSS

0 commit comments

Comments
 (0)