Someone literally wrote 15 lines of JavaScript to make a page fade out. You know what else makes a page disappear? Closing the tab. Takes zero lines of code.
But no, we need to set the page opacity to 30%, create a spinner element with inline styles that would make any CSS developer weep, position it dead center with transforms (because apparently flexbox is too mainstream), add a linear infinite rotation animation with hardcoded pixel dimensions, append it to the body, wait 750ms, then fade everything out and remove the spinner.
All of this to simulate "loading" when the function literally does nothing except waste three-quarters of a second of the user's life. Modern web development is just adding spinners to make users think something important is happening. Spoiler: it's not.
The best part? The setTimeout callback has an empty action() function. Chef's kiss. Peak web engineering right there.
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp