Files
rust_browser/tests/navigation_tests.rs
Zachary D. Rowitsch efa555396f Add two-tier resource cache to avoid redundant work on resize and navigation
Network layer: cache successful responses in NetworkStack so identical URLs
return cached data instead of hitting disk/network again. Reload calls
clear_cache() to force re-fetching.

App layer: preserve computed styles and image map across window resize so
only layout is re-run (the relayout fast path), skipping HTML parsing, CSS
fetching, style computation, and image decoding. Navigation clears all
cached state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:15:39 -05:00

9.8 KiB