svelte-background-loader Svelte Themes

Svelte Background Loader

A component loader that loads and renders a component completely before displaying it. Prototype that might die....

svelte-background-loader

This is a WIP component testing a potential approach towards loading and fully rendering components in the background prior to displaying them live.

For the moment it is meant only as a test. Do not use in production as it might be completely discarded later!

It's surely not correct , as it will probably need some support from Svelte that does not exist now.

This is what I have so far:

  • A BackgroundLoader component that accepts a prop referencing a Svelte component and a placeholder slot (for now)
  • when the prop changes, it instantiates the component and renders inside a