Klarna Case Taintor Jul 19, 2022

How Removing Caching Improved Mobile Performance by 25%

Article Summary

Klarna's team removed their caching layer and saw a 25% performance boost. Wait, what?

Case Taintor from Klarna Engineering set out to defer loading a fullscreen iframe to improve their checkout experience. Instead, his benchmarking revealed a hidden performance killer that had been lurking in production for years.

Key Takeaways

Critical Insight

An optimization attempt uncovered that their application cache manifest was secretly downloading unnecessary assets, and removing it improved mobile performance by 25%.

The real story is how chrome://net-internals exposed what the standard DevTools completely missed about browser caching behavior.

About This Article

Problem

Case Taintor's team wanted to defer fullscreen iframe loading to improve performance. When they tested it, the results didn't match across machines. His own computer showed barely any improvement, but his colleagues were seeing gains over 50%. Something was clearly wrong, but they couldn't figure out what.

Solution

Taintor used PhantomJS with Docker and chrome://net-internals to dig deeper. He found that the application cache manifest was downloading duplicate assets while the page loaded. These duplicate downloads were competing with normal resource requests, which hid the real performance problem.

Impact

Once they removed the unnecessary application cache manifest, load times on Chrome Mobile dropped by 25%. The fullscreen deferral then added another 15% improvement on Taintor's machine.