📚 Encyclopedia

Flutter & Mobile · updated 2026-11-02

Flutter web (renderers, SEO, performance, when not to use it)

flutterflutter-webcanvaskitskwasmwasmseoperformancepwa

Flutter can compile an app to the web, which several of Justin's projects use (tldr's web app, the SMC site, Forge). It draws everything into a canvas instead of producing HTML, which explains both its strengths (pixel-identical UI shared with mobile) and its weaknesses (SEO, browser conventions, payload size). Research snapshot from March 2026 plus field experience.

Renderers

Limits to accept up front

SEO and first-load mitigations

Rendering performance

Accessibility

Measured fixes on tldrnerd.com (2026-06-12)

The TLDR web app's Apache vhost (behind nginx) originally served the Flutter build with no compression and no wasm MIME type. What changed, with numbers: - AddOutputFilterByType DEFLATE for JS, CSS, HTML, JSON, wasm: main.dart.js 8.1 MB to 2.4 MB, canvaskit.wasm 7.2 MB to 2.9 MB; a cold load went from about 15.3 MB to 5.4 MB. - AddType application/wasm .wasm: CanvasKit had no Content-Type at all, which blocks the browser's streaming wasm compilation. - Cache-Control: no-cache on the entry points (index.html, flutter_bootstrap.js, flutter_service_worker.js, version.json, manifest.json) so a deploy takes effect on the next load; the rest revalidates by ETag. - Do not dynamically gzip the APK (application/vnd.android.package-archive) served from the same vhost: on-the-fly compression breaks HTTP Range requests, and the in-app updater relies on resumable (206) downloads. - ServerName https://tldrnerd.com plus UseCanonicalName On in the vhost: behind nginx's TLS termination, Apache's mod_dir trailing-slash 301 otherwise pointed at http://, briefly sending a reset token in cleartext on old-style links. - A branded splash in web/index.html (removed on the flutter-first-frame event) replaced the blank white page during the bundle download, which mattered most for password-reset links opened cold from email. - Pages reached from email do not need Flutter at all. /password_reset/ and /verify_email/ became static index.html pages in web/ subdirectories that POST JSON to the API. Apache's -d rewrite condition serves them before the SPA fallback, and the mailed URLs include the trailing slash to skip a 301. They load instantly instead of after 5 MB of CanvasKit. - Emoji: the CanvasKit chromium variant strips emoji font support; use canvasKitVariant: "full" and load Noto Color Emoji with loadFontFromList().

Never leave a black screen

A Flutter web app that throws during startup shows nothing at all, and users report "it's just a black screen." Defend every layer:

Strict tracking protection hangs Flutter web

By default, Flutter web loads CanvasKit (canvaskit.js/.wasm) from www.gstatic.com and Roboto from fonts.gstatic.com. Strict tracking protection in Firefox, Fenix and GeckoView browsers blocks gstatic (the Disconnect "tracking content" list), so the app spins on its splash screen forever. Self-hosting needs both canvasKitBaseUrl: "canvaskit/" in flutter_bootstrap.js and bundled fonts with a self-hosted fontFallbackBaseUrl; with only CanvasKit self-hosted the app boots with blank labels. Found with tldrnerd.com in Tokay (post #1851); see Building an Android browser on GeckoView (Tokay).

Deploy gotchas on this server

See also

Linked from

Sources: tldr memory (server-web-performance, completed-work), smc-flutter memory (reference_web_design_research, March 2026), hunsley memory (hhs-frontend), global CLAUDE.md (object storage, /icons/ alias), tokay memory, post #1851