This post has originally been published on https://juristr.com/blog/2019/08/ngperf-virtual-scrolling-cdk. Go to juristr.com/blog for more content
This article is part of my "Angular Performance Week" series, where I publish a new video each day based on the performance articles on web.dev/angular.
- Route Level Code Splitting
- Preload Lazy Routes in Angular
- Performance budgets with the Angular CLI
- Optimize Angular's Change Detection
- Virtual Scrolling for large lists with the CDK
- Precaching with the Angular Service Worker
Don't miss the other videos by subscribing to my newsletter.
Browsers become faster every day, but still, DOM updates are costly. If we have large lists, the browser needs to render them upfront, creating hundreds if not thousands of DOM nodes, even though the user might not scroll that far down the list. Not only does this slow down the scrolling itself, but even the page load of our app can suffer from it. To optimize this experience, we can use virtual scrolling, in particular, in this lesson we’re using Angular’s CDK to implement that.
Wanna read the original web.dev article? Check it out here!.
As we all know being a competent software developer or engineer means continuously learning throughout your career. It’s great! That makes this profession exciting and allows to escape everyday routine at work. In fact, it’s not a job anymore - it’s a lifestyle 👩💻👨💻