Optimizing Preline JS for Production (Svelte/Sveltekit) #509
Unanswered
kjellherzke
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yeah, I completely agree with your sentiment that the docs are really not up to scratch. I usually go to Tailwind UI docs, as preline is basically just a re-styled (and cheaper...) version of Tailwind UI. I also agree that work needs to be done to get the preline.js files' size down to something a bit more sane. And yes, having to manually copy the preline file is really annoying... |
Beta Was this translation helpful? Give feedback.
1 reply
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