Yes, Vanilla JavaScript code is pretty ugly and I completely agree with that but using library just because your code doesn't look pretty is not a good idea at all. It will cost you a lot ( 30 kb).
Remember You can make the code more readable just by breaking it into function.
Yes, Vanilla JavaScript code is pretty ugly and I completely agree with that but using library just because your code doesn't look pretty is not a good idea at all. It will cost you a lot ( 30 kb).
Remember You can make the code more readable just by breaking it into function.
That was just an example. There could be a bunch of these cases in the code, and besides, 30 kB isn’t all that much anyway.