DEV Community

Cover image for Angular Performance: Virtual Scrolling with the CDK
Juri Strumpflohner for Angular

Posted on • Updated on • Originally published at

Angular Performance: Virtual Scrolling with the CDK

This post has originally been published on Go to 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

Note: this article and attached Egghead video lesson are based on the articles on by Minko Gechev and Stephen Fluin. Full credit goes to them 👍

Angular Performance Series

  1. Route Level Code Splitting
  2. Preload Lazy Routes in Angular
  3. Performance budgets with the Angular CLI
  4. Optimize Angular's Change Detection
  5. Virtual Scrolling for large lists with the CDK
  6. Precaching with the Angular Service Worker

Don't miss the other videos by subscribing to my newsletter.

Leverage the Angular CDK to implement virtual scrolling

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.

Original article

Wanna read the original article? Check it out here!.

Top comments (0)