Presented at Web Unleashed 2017
More info at www.fitc.ca
Presented by Luke Dewitt, REDspace
Overview
2017. The browser wars are in full force with Chrome, Safari, Edge, and Firefox all battling for market share. Resources are being poured into JavaScript rendering engines, and the language itself continues to grow and expand at a rate unseen anytime before to take advantage of modern machines…
An unfortunate casualty along the way – jQuery. Once dubbed the “only tool you need”, it has been rendered almost useless by modern day browsers.
Join Luke as he bids a fond, and somewhat embarrassing, goodbye to an old friend, and introduces some new methods that you can start using today on your sites and apps.
Objective
To show you that you can ditch jQuery today with little to no effort!
Target Audience
Anyone who builds websites in 2017 and still relies on jQuery to do a lot of their heavy lifting.
Assumed Audience Knowledge
Basic JavaScript
Four Things Audience Members Will Learn
Writing JavaScript without leaning on jQuery
Performance benefits of ditching jQuery
Micro-frameworks
Why it’s time to say goodbye
54. Attributes
jQuery
2017
// get
let foo = $el.attr(“id”);
// set
$el.attr(“id”, “foobar”);
// get
let id = $el.id;
// set
$el.setAttribute(“id”, “foobar”);