Optimizing Preline JS for Production (Svelte/Sveltekit) #509
Unanswered
kjellherzke
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I recently have issues, optimizing my sveltekit app, since I began using preline js. Furthermore, the documentation isn't helping either, as it mostly is insufficient, for frameworks such as svelte (e.g. it states you have to install preline as npm package, and then again copy its compiled js in static folder, which seems really unoptimized and redundant). As another user mentioned in #490, the size of the bundled "preline.js" file is around 250kb large, and while it is difficult lazy loading the file itself, this results in a really bad, unoptimized website.
Does anyone have any suggestions, tips or solutions to this or a similar issue?
I'm looking forward to hearing from anyone of you.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions