title: The Nuxt.js (SPA) application crashes when I keep taking photos in iOS Safari. (Caused by a memory leak?)
body: <p>I have created an application that uses Nuxt.js (SPA) to take up to 20 images taken with the iPhone and register all 20 at once.
  When the images are taken, they are compressed to about 500KB using a library called <a href="https://github.com/Donaldcwl/browser-image-compression" rel="nofollow noreferrer">browser-image-compression</a> and retained.
  The compressed images are then displayed in a preview.</p>
  <p>The problem is that when registering 20 photos multiple times, the Nuxt.js application suddenly crashes in the middle of the process (when taking a photo, the captured image suddenly starts to disappear after loading, like when reloading).</p>
  <p>Thinking it could be a memory leak, I tried measuring it on the Mac Safari timeline, but the memory usage goes up and up with each shot, and does not go down.</p>
  <p>I tried to refresh memory with <code>location.reload(true)</code>, but the memory usage did not go down.</p>
  <p>Please let me know the solution to refresh the memory, or anything that will stop the application from crashing.</p>
  <p><a href="https://i.stack.imgur.com/wmxiY.png" rel="nofollow noreferrer">Memory Timeline just before the crash</a></p>
  <h3>Versions</h3>
  <ul>
  <li>iPhone 11</li>
  <li>iOS 14.6</li>
  <li>@nuxt/cli v2.14.12</li>
  <li>Vue v2.6.14</li>
  <li>browser-image-compression v1.0.14</li>
  </ul>