Create a new JavaScript execution context
Source
const getNewExecutionContext = markup =>
new Promise(resolve => {
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.setAttribute('src', 'about:blank');