5 ms·
i still personally find vanilla js quite cumbersome for dom manipulation but that's partly because i've grown used to the jquery way.
by mouzogu 10y ago
i still personally find vanilla js quite cumbersome for dom manipulation but that's partly because i've grown used to the jquery way.
- mercer 10y agoYeah, it's a bit more verbose, although some of that can be alleviated with a helper function or two, well enough that it's worth it for me in many cases. But I still regularly find myself just using jQuery for convenience, as there's still a bunch of gotchas with plain js. For example, I rather liked the event.path property to deal with event bubbling, only to discover that safari (mobile, at least) doesn't support it. Adding a helper function for that was trivial, but it's still one extra thing to do, and it makes it just a bit harder for other devs to get going. I ran into a number of these minor issues.