im still confused with how svelte works once it is compiled. There still must be some sort of runtime or overhead that is bundled into your compiled code that makes it all work surely ?
hmm interesting, there must be something which makes it reactive though? event listeners or something? I should probably stop speculating and just read the source code :D
im still confused with how svelte works once it is compiled. There still must be some sort of runtime or overhead that is bundled into your compiled code that makes it all work surely ?
No. As far as Im aware the compiler compiles it into vanilla javascript that will run directly in the browser so theres no need for a runtime.
hmm interesting, there must be something which makes it reactive though? event listeners or something? I should probably stop speculating and just read the source code :D
dev.to/kevinast/responsive-svelte-...
You can read more here perhaps (I said perhaps because it's still on my to-read list so I don't know if this answers your question.)