Svelte is a tool for building fast web applications Similar to React or Vue, its primary goal is to make it easy to build interactive user interfaces. Unlike React or Vue which do the bulk of their work in the browser, Svelte converts your app into ideal JavaScript at build time. instead of using technique like virtual DOM diffing, Svelte writes code that cleverly updates the DOM when the state of your app changes.
SvelteKit is a framework for bulding high-performance web apps using Svelte. Svelte is a component framework, SvelteKit is an app framework.
It's not quite ppossible to build a full features rich applcation ready to be deployed for production. Svelte is a components frmework for building user interfaces. You have to make decisions on other features of the app like routing, Server side rendering, Auth etc.
It is a packages that uses Svelte for building user interfaces. Loading with a lot more features that enables you to build full fledged production ready application. Features exactly like routing, server side rendering, authentication, bundle optimization etc. There's no need to install additional packages. SvelteKit provides everythings for you. Opinions and conventions which need to be followed to implement the above said features.
SvelteKit simplifies the process of buliding a web apllication for production
npm cerate svelte@latest
and choose according to project requirment.
import {page} from '$app/store';
src/routes/ (app)/ dashboard/ item/ +layout.svelte (website)/ about/ pricing/ +layout.sevlte +page.svelte
When we nevigate, sveltekit call all the load() functions concurrently
- Call all load() function at the same time.
- This reduce waterfalls.
- Be carefull not to re-interduce waterfalls.