Test Combined
Last updated: 3/20/2025, 9:24:34 PM
Combined Test: Wiki Links and Background Loading
This file tests both the wiki link parsing and background loading functionality.
Wiki Links
Standard Wiki Links
- [[Architecture]] - Standard wiki link
- [[Overview|Custom Display Text]] - Wiki link with custom display text
Nested Path Links
- [[Generative Agents/Architecture]] - Nested path link
- [[Generative Agents/Overview|Generative Agents Overview]] - Nested path with custom display text
HTML Span Support
This paragraph contains a highlighted span which should be properly rendered.
This paragraph contains both a highlighted span and a [[wiki link]] which should both be properly rendered.
Background Loading
The following links should be loaded in the background after this page loads:
- [[test-background-loading]] - First background loading test
- [[test-background-loading-2]] - Second background loading test
- [[test-wiki-links]] - Wiki links test
After waiting a few seconds for background loading to complete, clicking these links should show the content instantly without a loading spinner.
Performance Testing
To test the performance improvements:
- Navigate to this page and wait for it to load
- Wait a few seconds for background loading to complete
- Click one of the links above
- The linked page should appear instantly without loading
- Navigate back to this page
- Click another link to verify it also loads instantly
Combined Features
This section demonstrates how the two features work together:
- Background loading prioritizes the current page for immediate loading
- Wiki links are properly parsed and rendered
- Unresolved wiki links are styled differently
- HTML spans are properly rendered
- Navigation between pages is faster due to background loading
Edge Cases
- [[Non-existent Page]] - Link to a page that doesn't exist
- [[Generative Agents/Non-existent]] - Nested link to a page that doesn't exist
- This span has the wiki-unresolved-link class directly