The JS function specified by on-jsload is called right after the code is reloaded. It would be useful to have a similar handle allowing to define a JS function called right before the code is reloaded, in the previous context.
A concrete use-case is to be able to close AudioContext. AudioContext leak system resources if not properly closed. After a couple of reload (6 with current chrome) you can't create new AudioContext if they have not been closed.
The JS function specified by
on-jsloadis called right after the code is reloaded. It would be useful to have a similar handle allowing to define a JS function called right before the code is reloaded, in the previous context.A concrete use-case is to be able to
closeAudioContext.AudioContextleak system resources if not properly closed. After a couple of reload (6 with current chrome) you can't create newAudioContextif they have not been closed.