Fantasy-Map-Generator/modules
Claude 69e69abb85
feat(obsidian): pre-warm vault cache on startup for instant browsing
Problem: The first time you browse notes, it has to scan all 13,496 files,
which is very slow. This makes the initial user experience poor.

Solution: Pre-warm the vault file cache in the background:
1. When Obsidian connection is tested (first-time setup)
2. When FMG loads and Obsidian is already enabled (page reload)

Implementation:
- Add prewarmCache() function that scans vault in background
- Call it from testConnection() (don't await - runs async)
- Call it from init() if config.enabled is true
- Scan happens silently in the background
- By the time user clicks Browse, cache is already loaded

Benefits:
- First browse is instant (cache already loaded)
- Works on every page reload
- Non-blocking (doesn't slow down FMG startup)
- Silent/automatic (no user interaction needed)

User experience:
- First time: Test connection → cache warms in background → browse is instant
- Subsequent loads: Page loads → cache warms → browse is instant
- Cache lasts 5 minutes, so multiple browses within that window are all instant
EOF
)
2025-11-14 06:21:05 +00:00
..
dynamic perf: set text-rendering to optimizeSpeed, v1.108.1 2025-02-15 14:43:51 +01:00
io feat(obsidian): pre-warm vault cache on startup for instant browsing 2025-11-14 06:21:05 +00:00
renderers Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
ui fix(obsidian): remove async from button handler for jQuery UI compatibility 2025-11-14 06:13:53 +00:00
biomes.js Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
burgs-and-states.js something 2025-11-13 22:03:36 -05:00
coa-generator.js feat: add new emblem charges 2023-10-30 22:27:25 +04:00
coa-renderer.js Fix: rework texture data format (#1017) 2023-11-19 14:43:56 +04:00
cultures-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
features.js fix: features - define first cell 2024-09-22 13:04:22 +02:00
fonts.js feat: new style - DarkSeas 2024-08-17 14:16:01 +02:00
heightmap-generator.js feat: heightmap brushes - linear edit option (1.88.00) 2022-10-31 00:24:54 +03:00
lakes.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
markers-generator.js something 2025-11-13 22:03:36 -05:00
military-generator.js feat: make lined icons work for all elements, v1.107.0 2025-02-08 14:05:28 +01:00
names-generator.js fix: allow to load smaller namesbase without issues on regeneration 2024-10-09 01:08:47 +02:00
ocean-layers.js feat: optimizeSpeed rendering (1.87.15) 2022-10-13 00:52:49 +03:00
provinces-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
religions-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
resample.js fix: sumap - clip routes by bbox 2024-12-14 15:12:38 +01:00
river-generator.js fix: 1.106.7 - rivers starting width calc 2024-12-17 17:11:13 +01:00
routes-generator.js [Draft] Submap refactoring (#1153) 2024-12-12 13:11:54 +01:00
submap.js chore: parse DEBUG setting as an object 2024-10-22 14:45:25 +02:00
voronoi.js Fix: flux calculation from area-propotional value instead of normal value. (#654) 2021-08-15 12:43:20 +03:00
zones-generator.js fix: add p to priority queue 2024-10-26 14:29:52 +02:00