How to implement async event tracking in JS runtime without blocking RPC response?

base on this discussion: