function createIframe(url) {
const iframe = document.createElement('iframe');
iframe.setAttribute('src', url);
document.body.appendChild(iframe);
}
function wasActivated() {
return self.performance?.getEntriesByType?.('navigation')[0]
?.activationStart > 0;
}
const wasPrerendered = document.prerendering || wasActivated();
if (wasActivated()) {
awActivationFuture.activated();
} else {
document.onprerenderingchange = () => awActivationFuture.activated();
}
window.localStorage.setItem('pageStarted', location.href);