This method uses window.postMessage for a near zero delay callback. (Source)
window.postMessage
See here for background information