How to Identify, Diagnose, and Fix Memory Leaks in Web Apps

Boost your web app’s performance by writing optimized code and using Chrome DevTools

Hunting memory leaks issues is a complex problem with fiendish edge cases, and debugging them can be a daunting task. To avoid such a problem in your app, you need awareness about it and constant vigilance.

What you’ll learn

  • You’ll learn how to effectively track memory leaks down with chrome DevTools..
  • A brief history of web performance..
  • The difference in the performance requirements between MPA (Multiple Page Application) and SPA (Single Page Application).
  • The difference between runtime performance and other kind of web performance..
  • Learn the signs that your web app is leaking memory..
  • Learn programming patterns that cause JavaScript memory leaks..

Course Content

  • Introduction –> 1 lecture • 2min.
  • What’s a memory leak? –> 1 lecture • 1min.
  • A brief history of web performance and JS memory leaks –> 1 lecture • 5min.
  • Types of web performance problems –> 1 lecture • 2min.
  • Signs that your app is leaking memory –> 1 lecture • 1min.
  • How to identify memory leaks with chrome DevTools –> 5 lectures • 11min.
  • 7 coding patterns that leak memory in JavaScript –> 3 lectures • 12min.
  • Case study –> 1 lecture • 16min.
  • Final thought –> 1 lecture • 1min.

Auto Draft

Requirements

  • No prior knowledge of web performance optimisation required..
  • A bit of knowledge about JavaScript/TypeScript and HTML would be helpful..

Hunting memory leaks issues is a complex problem with fiendish edge cases, and debugging them can be a daunting task. To avoid such a problem in your app, you need awareness about it and constant vigilance.

JavaScript memory leaks are sneaky and could be challenging to localize because they can go unnoticed for some time. And even if your performance gets progressively worse, you will not see a thrown error on the browser while running the leaking app because it’s not an invalid code that causes memory leaks, but a logical flaw in it.

In this course, we’ll see how to effectively track memory leaks down and learn what causes them. You’ll get insights on how to respect more the end-user device’s resources. You’ll also avoid situations where you pull your hair out trying to understand what’s going on with your performance.

I designed this course to suit newcomers as well as advanced developers, and I will walk you through the topic step by step until you get your hands dirty.

At the end of the course, you’ll be able to identify, diagnose, and fix memory leaks in web apps even if you’re not the one who implemented them. You’ll be also able to catch patterns in your source code that cause leaks.

Get Tutorial