Web performance is something that a lot of people do not consider when they set out to build software that works on the web.
Everyone should stri...
For further actions, you may consider blocking this person and/or reporting abuse
Import packages via Skypack and you can get minified versions regardless of whether the original package was minified
Gone through the basics of the docs
But, wait... if one is fetching or importing data from a CDN. Doesn't that increase the issue of poor load times for folks with a very poor bandwidth?
Well, the whole purpose of a CDN is to make things load faster. Your statement / question is quite confusing.... And loading a minimized version of anything looks like pretty useful to me.
I think maybe he was getting at the bundler question. This is the area where the debate is for me. It's arguable that if some of your dependencies rarely change, then it may be better leaving them out of the bundle and loading them externally from a CDN. This will reduce your bundle size, and all these unchanging dependencies will be cached locally (+ fast loading initially). I believe there are plugins lying around that can make specified dependencies use Skypack in production builds.
Great! Thank you for pointing this out too. 🚀
Just to be clear again...
It'll be better to do something like
Instead of the normal way. Yeah?
@jonrandy
It depends. If you pull a library "from the browser", it is preferable to be minified. If you pull a library "in your npm project", the sources are often preferable, since the whole app is bundled/minified in the end anyway.
Now, this is clear.
Thank you! 🍷
That's a whole different subject and debate
Do you mind walking me through it?
That Skypack is a very interesting thing, I will try it out some day.
For bundling/minification, you might also be interested to take a look at esbuild
Great! I'll check this out too.