00:46
<Krinkle>
(eg by using a single-match or last-match on replacing </body> to insert both your data script and the execution script that consumes it)
00:47
<Krinkle>
I believe the browser stack middleware for unit test capture works that way as well.