4 ms·
Wait...jQuery is available?? double :(
by obituary_latte 14y ago
Wait...jQuery is available??
double :(
- redidas 14y agoWas this double :( a response to the fact that jQuery is available and shouldn't have needed to be? Or because you just wrote 6 lines of javascript when you could have written 1? I read it as the first, and had this immediate reaction: - I'd rather write the 1 line of jQuery over the 6 in vanilla javascript - I'd rather read the 1 line of jQuery to understand what is going on instead of the 6 in vanilla javascript - jQuery didn't actually impact your experience much... as you didn't realize it might even be available.
- waxjar 14y agoI'd take the 6 lines of vanilla javascript any day over loading the full jQuery library to get away with writing only a single line. If jQuery isn't use anywhere else on the page, that is.