4 ms·
There should be another row that which of these can be included as a standalone javascript lib in html instead of requiring NPM.
by smusamashah 3y ago
There should be another row that which of these can be included as a standalone javascript lib in html instead of requiring NPM.
- adparadox 3y agoNot requiring NPM was one of my original requirements for anything on this list. All of these libraries should be available from HTML directly -- let me know or make a PR if that isn't the case.
- smusamashah 3y agoI looked at the first one on the list "lit" and the very first thing it says on github is to install via npm.
- spankalee 3y agoThat's because the vast majority of the JS ecosystem installs libraries via npm. We can't really put all of the different ways to use Lit on the front page, but we document how to use Lit from a CDN right on the getting started page: https://lit.dev/docs/getting-started/#use-bundles https://lit.dev/docs/getting-started/#use-bundles
- hluska 3y agoIf you read the documentation, you’ll find these links: Core - https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js All - https://cdn.jsdelivr.net/gh/lit/dist@2/all/lit-all.min.js https://cdn.jsdelivr.net/gh/lit/dist@2/all/lit-all.min.js
- vxNsr 3y agoMaybe you can add that somewhere in subtitle somehow? as it's not immediately clear
- adparadox 3y agoGood idea! I'll add it to the subtitle.
- spankalee 3y agoFor Lit, you can use pre-bundled versions from a CDN: https://lit.dev/docs/getting-started/#use-bundles https://lit.dev/docs/getting-started/#use-bundles
- robertoandred 3y agoWhich means any content would be rendered after page load, worsening performance compared to frameworks like Next.
- Zizizizz 3y agoNo it doesn't, for some of these at least you can render the page server side and the reactive components become reactive a bit later on, isn't that how next would work as well? It's a blend of server side and front end interactivity right?
- robertoandred 3y agoYou can’t render server side if you only use the library in a client-side script tag.
- Zizizizz 3y agohttps://htmx.org https://htmx.org so with this, the button will be there, but clicking on it might not do something until it's been fetched
- deleted 3y ago[deleted]