
// PROD Bootstrapper: wait for first paint, then load bundles sequentially
requestAnimationFrame(() => {
  requestAnimationFrame(() => {
    setTimeout(() => {
      const scripts = ["js/lottie.min.js","js/marked.min.js","js/libs/dexie.min.js","b2xx5p.js","xa04y8.js"];
      const loadNext = (index) => {
        if (index >= scripts.length) {
          return;
        }
        const s = document.createElement('script');
        s.src = scripts[index];
        s.onload = () => loadNext(index + 1);
        document.body.appendChild(s);
      };
      loadNext(0);
    }, 10);
  });
});
