Save this video free

Fetching Multiple Product Carousels from a JSON API (11-9-2026) | CIS311

Kenan Casey · 36:45 · Watch on YouTube

Part of Kenan Casey: CIS 311. See all 11 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Kenan Casey builds multiple product carousels in vanilla JavaScript by fetching a JSON product catalog, grouping products into category shelves, and rendering cards from HTML templates. The demo covers async/await and JSON parsing, data normalization and error handling, a 20-product-per-shelf limit, and carousel buttons that scroll by 90% of the track width.

Key takeaways

Chapters

0:00 Why E-commerce Sites Use Horizontal Product Carousels
2:24 Product JSON and HTML Templates for Shelves and Cards
7:50 JavaScript Configuration, Category Filters, and Loading Delay
11:26 Fetching the Catalog with async/await and Parsing JSON
18:00 Normalizing Product Data and Debugging an Unawaited Promise
24:20 Filtering Categories and Building Cards from DOM Templates
31:17 Creating Shelves and Scrolling Carousels with Arrow Controls

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 All right. So, this is a very complete and complex demo of a pattern that I see coming up all the time on big e-commerce sites. And the pattern that I noticed was Amazon, Walmart, like you name it. Um, this really common motif seemed to be horizontal carousel with the buttons that scroll. Um, I don't Hang on. Here's another example of it. Here's another example. Yeah. Um, and in fact, see, I'm not signed in on this tab, but if I were to go to a particular thing like Amazon

0:49 home, I felt like I what I noticed were there was just rows and rows of this same pattern. You see that? So, I see why I think this is this works well from a usability standpoint because um you get to kind of put your categories horizontally and you've presented the user with four or five really nice options that they can see without doing any clicks and they can click on a button to scroll or if you're on a touch device it's very natural to just horizontally scroll with your finger. Um, and if you want to see some other options, like if I'm ready to see if I'm done with winter decor, I can come down here to shop by category and then keep scrolling down to featured

1:36 deals. And I do think that there is less friction in a scroll. Um, this is mental friction, not physical friction. But, uh, there's less friction mentally in a scroll than there is in a click. Scrolling doesn't really make me choose. I feel like it's a it's a like brain numbingly simple interaction. And so we're letting the users browse without having to click and make any choices is my off the top of my head thought as

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Kenan Casey.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.