-
I am trying to use mathlive inside of sveltekit - I have an example repl here: or if you create a fresh svelte project you can use those same files for a page to reproduce it. If you look at the console when you go to the page all of the fonts fail to download. TL;DR: fonts don't download. Bonus problem: When importing mathlive directly to a svelte file I get a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems to work well with a client-side import. Also works if SSR is disabled so maybe that's the issue? Not sure this should work with SSR (I've never used this package). But you could workaround the flashing with an |
Beta Was this translation helpful? Give feedback.
It seems to work well with a client-side import.
https://svelte.dev/repl/3ac725a80c044845976af9977eb5bf6f?version=3.53.1
Also works if SSR is disabled so maybe that's the issue?
https://stackblitz.com/edit/sveltejs-kit-template-default-3cqhpa?file=src/routes/+page.js
Not sure this should work with SSR (I've never used this package). But you could workaround the flashing with an
await
block and a promise for theimport()
to show a loading skeleton / spinner.