Ditching jQuery
This article details how I write modern, native JavaScript (aka vanilla JS), and includes a growing collection of native JavaScript equivalents for common jQuery tasks.
Table of Contents Why go native? My approach Cutting the mustard What browsers are supported? Hiding content after the JS is loaded Native JavaScript APIs Selectors Looping through objects Class manipulation Manipulate styles Manipulate attributes Event listeners Waiting until the DOM is ready Manipulate height Working with forms HTML content Extend Is an element in the viewport?
gomakethings.com