https://kotlinlang.org logo
#compose-web
Title
# compose-web
d

Draget

10/23/2021, 7:55 AM
I have been in the backend for most of my life. Reading about developments in the JS community, the struggles of Frameworks like Angular with following the 'lean trend' with treeshaking and minifying etc. to streamline the compliation and delivery of apps. As an enduser, I tend towards being one of those yelling old bearded people who immediatly nag around when a website loads a megabye of JS and does display NOTHING without JS enabled. I do appreciate the different developments for SSR (ServerSideRenderig) in the different frameworks. Recently started playing with Svelte and Snapper that basically gives me a nice, clean static website with mostly just the JS I want, while allowing declative and clean component description and logic. That all being said, I find it interesting to integrate the web frontends into my whole Kotlin ecosystem using compose-web. How does it compare if I am the kind of person that would like to use static-site-generators for everything? Could I declare components that have zero logic and end up with a lean, small website that is basically static when using compose-web?
🚫 2
n

Norbi

10/23/2021, 8:50 AM
Considering your goals you should choose another technology/stack. Compose/Web is inherently Javascript-heavy (when deployed).
d

Draget

10/23/2021, 9:07 AM
I see, thanks. 🙂
d

darkmoon_uk

10/23/2021, 10:18 AM
If you want to use Kotlin to build wholly server-rendered web applications, then Ktor + Kotlinx HTML library fits the bill.
r

rocketraman

10/23/2021, 12:56 PM
SSR (note, not SSG) is useful for performance reasons and SEO. It's not about avoiding JS on the front-end, it's about optimizing the page loading experience. I don't see any fundamental reason why SSR couldn't be supported by compose web.
e

ESchouten

10/23/2021, 1:43 PM
BTW, is you're going to use Svelte, don't use Sapper, it's successor is called SvelteKit
r

rnett

10/23/2021, 10:21 PM
@rocketraman I suspect it will be eventually, it's just not a priority at the moment
3 Views