Interesting exploration of an easy to introduce memory leak in frontend code.
And a good approach to pick what to delegate.
Interesting definition of delegation