stuhack
stuhack copied to clipboard
refactor: use functional programming like syntax to reduce clutter
Changes
- use
.remove()
method on DOM elements to remove them without accessing the parent node - use query selector with filters to match all elements for removal
- use nullish
?
operator for null checking before calling a method - move blurred image entirely out of the blurred container to prevent getting automatically blurred again