This gist demonstrates how to lazy load Svelte components using dynamic imports, comparing the syntax between Svelte 4 and Svelte 5 (runes mode). Lazy loading is a powerful technique to optimize bundle size and improve performance by loading components only when needed (e.g., widgets, modals, or rarely-used UI).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "score": 21898, | |
| "time": 50.89189404930059, | |
| "explored": 100, | |
| "fragments": 10, | |
| "difficulty": "hard", | |
| "date": "2026-02-01T22:26:32.792Z" | |
| }, | |
| { |