
0:00
28:49
Mike and Amanda share four JavaScript libraries you can add to any website! They also explain why to avoid piling on too many.
Overview
Mike and Amanda talk about JavaScript libraries, ready-made tools you can drop into any website regardless of the CMS. Mike shows three he uses on client sites, Amanda shares one she used on a recent data project, and they discuss how to use libraries without slowing a site down.
Key Topics
- Current events banter and the Hinton Lectures
- A quick look at the week’s news
- Mike shares warnings about AI risk that he heard at the Hinton Lectures in Toronto
- A viral claim about a Simpsons episode predicting a blackout
- What a JavaScript library is
- Pre-built code that works whatever the CMS
- Usually tested, documented, and improved by a community
- Amanda’s example: building a modal window from scratch is a lot of work
- Ladda buttons
- Buttons that show a loading spinner and disable after a click
- Fixed duplicate recipe submissions on a client site
- Many spinner and button styles available
- Swup
- Turns link clicks into smooth page transitions without a full reload
- Updates the address bar, and has an accessibility plugin for reduced motion
- Keep animations quick
- Video.js
- A custom-branded skin on top of embedded videos from YouTube, Vimeo, or your own server
- Hides the clutter of YouTube’s own player
- Mike said it replaced Plyr, which had been retired
- Chart.js
- Turns data into bar, line, scatter, donut, and pie charts
- Amanda used it for a stats-heavy project
- Using libraries wisely
- Too many libraries slow a site down
- Strip out unused features, especially from purchased themes
Key Takeaways
- JavaScript libraries work on any site, whatever the CMS, and save you from building complex features yourself
- Read the documentation, which is usually good because the authors want their libraries to be popular
- Disabling a button on click can stop duplicate form submissions
- Page transitions should be quick, and should respect reduced-motion settings
- Custom video players can match your brand but add load time
- Chart.js is an easy way to turn raw data into readable charts
- Weigh performance against looks, and remove the features you don’t use
Show Links
- Short with most views showing The Simpsons blackout prediction
- The Hinton Lectures
- Episode with Amanda's sister
- Ladda
- Swup
- Video.js
- Chart.js
- Contact the show
View Episode Transcript
More Website 101 Podcast
D'autres épisodes de "Website 101 Podcast"



Ne ratez aucun épisode de “Website 101 Podcast” et abonnez-vous gratuitement à ce podcast dans l'application GetPodcast.








