Welcome to the course! In this introduction, we set the stage for building an infinite scroll feature in a Laravel Livewire project. First, we'll look at a common (but not perfect) way to implement infinite scrolling—something that works nicely when you don’t need blazing-fast performance. To keep things beginner-friendly, we’ll also touch on some pitfalls of the less optimal method, then show you a much better approach for most small to medium projects.
If you’re looking for super-high performance, don’t worry! There’s another course for that, where we’ll cover more advanced solutions—this one’s all about a straightforward and easy setup that won’t stress your database too much.
We take a peek at a quick demo where 100 records are loaded with infinite scroll as you move down the page. We also cover an important detail: stopping the scroll from making unnecessary network requests when you hit the end (so you don’t kill your server with requests!).
Overall, if you've got a few hundred records and want something quick and simple, this method will fit just fine. If you’re new, we’ll start from scratch with a fresh Laravel project, seed your database, and make sure your records show up clearly. Finally, we’ll wrap things up and add a few finishing touches.
See you in the next episode, where we’ll start building!