Fireship · @fireship
The Legend of jQuery in 100 Seconds
Uploaded September 14, 2020 · Length 2:11
Summary
A 100-second history of jQuery, the world's most popular JavaScript library, and its benefits for web development.
- jquery
- javascript library
- web development
- javascript framework
- jquery benefits
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
jquery by far the world's most popular
- 0:02
javascript library being found on over
- 0:04
80 percent of the world's top 1 million
- 0:06
websites
- 0:07
that's more than four times the adoption
- 0:08
of angular react and view
- 0:10
combined it was invented back in 2006 by
- 0:13
john resig before most of today's junior
- 0:14
developers were even born he originally
- 0:16
wanted to call it jselect
- 0:18
but all the domains were taken the
- 0:19
popularity of jquery is driven by a
- 0:21
fundamental need in the web development
- 0:23
market
- 0:23
javascript is a total and we want to
- 0:25
write less of it furthermore
- 0:27
back in o6 browsers had a bunch of
- 0:28
interop issues jquery provided a single
- 0:31
api to handle the edge cases across
- 0:33
multiple browsers
- 0:34
it's so good in fact that browser
- 0:36
vendors of today have standardized many
- 0:37
of its features and ship them as native
- 0:39
apis
- 0:40
you can install it by finding the source
- 0:41
code on the website right click to copy
- 0:43
it then open dreamweaver and find all of
- 0:45
the html pages and paste it into a
- 0:47
script tag on each one your javascript
- 0:49
now has access to the mighty dollar sign
- 0:51
function
- 0:51
it takes a selector as its argument like
- 0:53
a tag name class or id it'll grab that
- 0:56
html from the dom
- 0:57
allowing you to perform actions on it in
- 0:58
the html we have a list of items and we
- 1:00
want to grab the first item in vanilla
- 1:02
js we'd have to use this ridiculously
- 1:04
long line of code to do so
- 1:05
in react we have to completely rewrite
- 1:07
our code into a component and implement
- 1:09
the confusing ref hook
- 1:10
with jquery we can use the dollar sign
- 1:12
to grab all the list items and then call
- 1:13
first to get the first one
- 1:15
it's easy and readable if we want to
- 1:16
animate it we can do that by simply
- 1:18
chaining a method to it and we can chain
- 1:20
more methods to it to register event
- 1:21
listeners and all kinds of other fun
- 1:23
stuff
- 1:23
declarative framework developers love to
- 1:25
fight each other about state management
- 1:27
don't make me swing on you bro
- 1:28
while jquery developers don't have this
- 1:30
problem because there's no data layer to
- 1:31
worry about instead you just start with
- 1:33
an object
- 1:33
shade methods to it and let the state
- 1:35
manage itself when it comes time to
- 1:36
extend jquery there's no need for
- 1:38
insanely complex web pack bundling or
- 1:40
npm packages
- 1:41
you can just extend its prototype with a
- 1:43
plugin and there's already a huge
- 1:44
ecosystem of plugins to get things done
- 1:46
quickly
- 1:46
as an added bonus once you've mastered
- 1:48
jquery you can jump into jquery mobile
- 1:50
and start building native apps for
- 1:52
windows phone and blackberry
- 1:53
developers of today sometimes make fun
- 1:55
of jquery but that's just the stuff you
- 1:56
have to deal with when you're the king
- 1:57
of javascript libraries
- 1:59
this has been the legend of jquery in


