setGenerationCount(prev => prev + 1)}
onError={() => setErrorCount(prev => prev + 1)}
className={css({
@@ -173,7 +174,7 @@ export default function TestTypstPage() {
columns: { base: 2, md: 3, lg: 5 },
gap: '4'
})}>
- {testNumbers.map((num) => (
+ {testNumbers.map((num, index) => (
{num}
+ {index > 1 && lazy}
1} // Make the last 3 components lazy
onSuccess={() => setGenerationCount(prev => prev + 1)}
onError={() => setErrorCount(prev => prev + 1)}
className={css({ w: 'full', h: 'full' })}
@@ -236,7 +243,10 @@ export default function TestTypstPage() {
• No Python bridge required - everything runs natively in TypeScript/WebAssembly
- • Uses the same Typst templates as the existing system for consistency
+ • WASM preloading starts automatically in background for better performance
+
+
+ • Lazy loading demo: Last 3 grid items show placeholders until clicked (progressive enhancement)
• Global abacus display settings are automatically applied