Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
@page "/"
@namespace aspnetcore_prerendering.Pages
@using blazor_workbox_pwa
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#3367D6" />
<link rel="apple-touch-icon" href="/images/icons-192.png" />
<meta name="Description" content="Blazor PWA using Workbox and Azure" />
<app>@(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))</app>
<script src="_framework/blazor.webassembly.js"></script>
// Check that service workers are supported
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {