Comment on A Dive Into Plain JavaScriptComments−indubitably12yA couple more links on this topic:Vanilla JS vs jQuery https://gist.github.com/liamcurry/2597326weaning yourself off jquery http://substack.net/weaning_yourself_off_jquery−voidr12yVanilla JS vs jQuery https://gist.github.com/liamcurry/2597326I checked this and it is an opinionated BS.You can't just replace $.fn.ready with a 'DOMContentLoaded' event. 'DOMContentLoaded' is not supported in a older versions of IE.Also what if instead of this: "var newDiv = $('<div/>')" I need this: "var newDiv = $('<div data-bar="true">Some text<div class="foo"/><')"?So overall that post is comparing apples to oranges.
Comments
A couple more links on this topic:
Vanilla JS vs jQuery https://gist.github.com/liamcurry/2597326
weaning yourself off jquery http://substack.net/weaning_yourself_off_jquery
I checked this and it is an opinionated BS.
You can't just replace $.fn.ready with a 'DOMContentLoaded' event. 'DOMContentLoaded' is not supported in a older versions of IE.
Also what if instead of this: "var newDiv = $('<div/>')" I need this: "var newDiv = $('<div data-bar="true">Some text<div class="foo"/><')"?
So overall that post is comparing apples to oranges.