Current section: Optimizations 29 exercises
Problem

Parallel Loading

Loading exercise

Transcript

00:00 If we take a look at how things work, if we go to one of these, then we're loading the data and then we load the image. But the way that our images are set up, it actually allows us to not have to wait for the ship to be able to get the image URL for

00:17 the ship and start suspending on that image. So what we need to do is switch to just using the ship name that comes here and trigger suspense for that or pre-loading for that image. So by the time it shows up in here, it doesn't need to suspend. It's already been in the process of fetching.

00:36 Maybe it needs to suspend because the image isn't ready yet. But ultimately, eventually, the image will be loaded. But the point is that we're going to be tightening the gap between these two. We want to scooch this over to the left. That is the goal for this exercise. I think you're ready. Let's go.