Deprecated JavaScript patterns and scroll override in about.html #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issues Found in about.html (lines 29-103, 156-205)
Issue #1: Deprecated string-based setInterval usage
Lines 79 & 196: Using
setInterval("cats_and_dogs()", speed)andsetInterval("move_every_mountain()", 50)- String-based interval calls are deprecated and can cause issues in modern browsers. Should usesetInterval(function() { cats_and_dogs(); }, speed).Issue #2: Window scroll override
Line 277:
window.onscroll=set_scroll- This overrides the default browser scroll behavior and can cause issues with native scrolling functionality. Should usewindow.addEventListener('scroll', set_scroll)instead.Issue #3 & #4: Legacy JavaScript patterns
Lines 19-28, 46-47: The rain effect uses deprecated string-based event handlers (
addLoadEvent,setInterval("...")) that are not recommended for modern code. These patterns can cause memory leaks and unpredictable behavior.Impact
Files Affected
the effects on about.html aren't my own anyways so i probably need to rewrite them in pure CSS instead of trying to fix the JS logic
Might happen this update, might not