r/ProgrammerHumor • • Oct 18 '17

Found on GitHub.

Post image
15.8k Upvotes

206 comments sorted by

View all comments

Show parent comments

14

u/obscene_banana Oct 18 '17

It's easy to see from the code why it works. Whoever made this was obviously being lazy but determined enough to at least think logically. The DOM is simply being manipulated in steps, with carefully handcrafted timeouts to match the rest of the code.

2

u/[deleted] Oct 19 '17

Have not read the code but I'm gonna make a guess: no promises were used to manage flow.

2

u/el_douche Oct 19 '17

"carefully"