{{flutter_js}} {{flutter_build_config}} // The Pipelines web proxy (web/serve.mjs) names an installed build's // versioned asset base, cached as immutable: the entrypoint, the renderer // (skwasm or CanvasKit) and the app's assets all load from it. Without it (a // development server) everything loads from the page's own base. // // No service worker is registered: Flutter's is deprecated and now only // unregisters itself and reloads the page, which cost a second startup after // every install. HTTP caching keeps repeat loads fast instead. (() => { const base = document.querySelector('meta[name="pipelines-asset-base"]')?.content; const config = base ? { entrypointBaseUrl: base, assetBase: base, canvasKitBaseUrl: base + "canvaskit/" } : {}; _flutter.loader.load({ config }); })();