import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App, { initialCues } from './App';
import { ensureCues } from './lib/data';
import './fonts';
import './index.css';

// The prerendered page stays visible while the few words the first screen needs load (small chunks).
const mount = () => createRoot(document.getElementById('root')!).render(<StrictMode><App /></StrictMode>);
void ensureCues(initialCues()).catch(() => undefined).then(mount);
