Leak1 Patched

Source Alpine src: /leak1/patched/patch-2126-cdn.js

Note: This version has this patch applied: https://github.com/bep/alpine/commit/c3fbc6319f2b959bfc17a67ce21677fcec386d7f – and should give 0 detached elements.

This is simplest to do with the gc method exposed in Chrome, e.g. by running it with these flags (alternatively is to manually do GC in Chrome’s memory profiler and then check the content of window.leakDetector and/or the detached elements in profiler):

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --js-flags="--expose-gc" --enable-memory-info

With your Chrome console open:

You can also create a new memory profile in Chrome and filter by Detached elements.

There, filter by Detached HTMLTemplateElement, you should see 20 detached elements. If you click on one, it points to evaluatorMemo.

To be removed