The only perceivable reason to want to secure a SPA without a backend is to avoid costs as much as possible. Securing without a backend is an almost impossible task. But still, you can secure some parts using browser encryption before building and deploying.
And you can avoid huge costs since you can serve millions of static high-quality requests virtually free.
But then again, what good is that? After all, without an API, or a database, you practically serve something akin to a book, and you can...
View full article
To start, I'll say what party town is, in a nutshell: it's a tool to get some of your execution out of the main thread and into a worker.
It's doing that by communicating between the worker and the main thread, which will primarily execute DOM updates.
More in-depth, this concept works by you marking the scripts as `not javascript` then those scripts are forwarded to the worker. If those scripts are external, they must be passed through a proxy that will get around CORS.
Now most common use for Pa...
View full article
Just converted and deployed this blog on Netlify. So I've been exploring svelte, and svelteKit, and I was looking to refresh my old blog that is in a neglected state. When I started this blog was 2007, and then it was of course, a WordPress blog, but I deleted most of the old articles partly because a lot of them were in my native language and also because I didn't feel like they should still be accessible like I said I can admit content was always low frequency and low effort.
So this blog has ...
View full article
This is some old draft article that I didn't want to trash, so I'll try to at least partially salvage it.
I played a bit with Deno deploy a while back, and I must say quite impressive that using Deno deploy is very easy to fast spawn a serverless worker, similar to a Cloudflare worker.
If I were to deploy something on a large scale where serverless workers could be a suitable environment as a replacement for a different backend set-up, and I had to choose a paid service, I would probably go wit...
View full article