svelte-it-will-scale
svelte-error-boundary
svelte-it-will-scale | svelte-error-boundary | |
---|---|---|
8 | 3 | |
174 | 75 | |
- | - | |
3.9 | 0.0 | |
over 4 years ago | almost 3 years ago | |
JavaScript | JavaScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
svelte-it-will-scale
-
Svelte Series-1: An awesome framework
Compiled code logic redundancy. Some readers may worry that if the complexity of the business logic, resulting in a straight line increase in the size of the code file after compilation, whether it will lead to a certain degree of performance degradation?Github on the relevant developers for this problem to analyze svelte-it-will-scale:
-
Svelte 4
That N is very large. E.g. here's a page that talks about it: https://github.com/halfnelson/svelte-it-will-scale. I'll note that was done with Svelte 3 and that with Svelte 4 components are at least 10% smaller, so it's actually even better than that. SvelteKit is also very efficient at JS splitting per-route thanks to Vite. It ensures only the JS that is necessary for a page is loaded and you're extremely unlikely to be using anywhere near that many components. Based on the article above, you'd have to have three entire sites worth of components on a single page.
-
Migrating from Vue 2 to Svelte
Sure, performance (bundle size), performance/predictability, simplicity (blog post)
-
What are we trading away when using a UI compiler?
Finding Svelte's Inflection Point
-
My Evaluation of SvelteKit for Full-Stack Web App Development
yes am aware, but also in any realistic scenario, code splitting comes in well before the crossover point where that even remotely comes into question. this has been independently verified twice now:
https://twitter.com/sveltesociety/status/1301168598988107776...
https://svelte-scaling.acmion.com/
https://github.com/halfnelson/svelte-it-will-scale
sveltekit has further opportunities for whole-app optimization but honestly given this research i lost interest bc its more than good enough
-
Svelte generates a LOT of JS output code. How is it not adding framework like functionality in runtime?
Svelte lowers the initial size of your app, however the incremental cost of each component creates an inflection point, where the added size of each component exceeds the size of a pre-bundled framework. What actually matters is where this inflection point is. This experiment actually evaluates that https://github.com/halfnelson/svelte-it-will-scale. Essentially, you would need a project equivalent to four times the size of the svelte.dev website to reach this point.
-
Server Rendering in JavaScript: Optimizing for Size
Naturally, the first thing I want to do is put these to the test, but it would be anecdotal at best. The first thing that came to mind was the comparison of Svelte Component Scaling compared to React. Some sort of test to see how much difference a small library that ignored all this compared to a large library that didn't.
- Svelte beats react for developer satisfaction in 2020
svelte-error-boundary
-
Now that SvelteKit 1.0 is out, what would you like to see added to its ecosystem? What would make your life easier / take a part of its functionality the extra mile?
Apparently it's quite a complex problem from what I have gathered. While there are packages like @crownframework/svelte-error-boundary that can guard from initialization-time errors, which I have blogged about, they sometimes don't work with asynchronous errors or errors triggered in child components. So it would actually be huge to have built-in support for error boundaries.
-
My Evaluation of SvelteKit for Full-Stack Web App Development
I agree with you error boundaries are a huge omission. You can do basic error boundaries using one of these two packages:
* https://github.com/crownframework/svelte-error-boundary
-
Error Boundaries in Svelte
Thankfully there is a community package available that implements error boundaries! 🤩
What are some alternatives?
svelte-kit-koa-boilerplate - This is a boilerplate for svelte-kit and koa.
svelte-error-boundary - Fix error boundary Svelte 3 problem to prevent full app crash :scream:
svelte-headlessui - Unofficial Svelte port of the Headless UI component library
SvelteKit - web development, streamlined
js-framework-benchmark - A comparison of the performance of a few popular javascript frameworks
firebase-gcp-examples - 🔥 Firebase app architectures, languages, tools & some GCP things! React w Next.js, Svelte w Sapper, Cloud Functions, Cloud Run.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]
sveltestrap - Bootstrap 4 & 5 components for Svelte
carbon-components-sv
konsta - Mobile UI components made with Tailwind CSS
npmgraph.an - 2d visualization of npm
svelte-kit-supertokens - A repository for exemplifying/testing Svelte-Kit usage with SuperTokens