/') ? path.substring(0, path.length - 2) + '/index.html' : path
    fetch(`/prerender${pagePath}`)
        .then(r => r.text())
        .then(html => {
            if (html.indexOf('<!DOCTYPE html>') >= 0) return // don't show CDN 404.html pages
            const pageBody = $1('#app-loading .content')
            if (pageBody) pageBody.innerHTML = `<i hidden data-prerender="${path}"></i>` + html
        })
        .catch(/* no prerendered content found for this path */)
}
</script>

    <div id=