~/talk

Preload strategies using WKWebView

Talkat BA: Swiftable 2022 · 2022-12-01..12-02· [web-platform, frontend-architecture]
links:none on file
slides:none on file

Shows a concrete preload implementation for WKWebView that cuts 90th‑percentile webview load from ~6s to ~3s by using a head-only preload.html with multiple link rel="preload" entries and an offscreen WKWebView created on the main actor to populate WKWebsiteDataStore so later webviews hit cache rather than network. Notes URLSession cache is incompatible, Safari lacks prefetch, WKURLSchemeHandler can serve local files but not http/https and has a ~100 resource note, and recommends preloading only focused assets to avoid bloating startup. WKWebsiteDataStore link rel="preload" offscreen WKWebView preloader WKURLSchemeHandler

AI-written summary · about

  1. 0:00Introduction
  2. 2:32Current approaches
  3. 3:14WKWebView
  4. 6:50Performance is a pain
  5. 7:04How to measure performance
  6. 7:41Web Performance Journey
  7. 9:09WKWebView Data Management
  8. 12:05Example
  9. 12:28Scenarios
  10. 14:24Link tag
  11. 15:33First scenario
  12. 16:11Demo
  13. 16:55When
  14. 17:12Demonstration
  15. 17:52Nonweb context
  16. 18:36Public function
  17. 19:12Preload HTML
  18. 24:39Conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.