Hello. just wondering, trying Jetpack compose for ...
# compose-web
f
Hello. just wondering, trying Jetpack compose for web. Everything ok, but production file size is around 2,5 MB 🙂 any advice with kotlin JS IR dce? or some lazyloading for kotlin js?
b
That's expected. IR JS is still not well optimised, even with more aggressive DCE
Are you building it with jsProductionExecutable, btw? Dev builds are a ton larger.
Lazy loading of kotlin.js is also out of question until ir-per-module compiler flag is stable.
f
@Big Chungus ah ok. trying to use your kmdc lib. I hope in one year timespan it will be better 🙂
jsBrowserProductionRun
b
We all do. But I think big size reductions will only come with es6 support
f
And when it is in roadmap?
b
Postponed i think
Good news is that this size increase is a lot less visible for bigger apps as it scales with diminishing increase
f
ah, ok, thanks
b
Hello world app will still be over a megabyte I think, but then small full spa with couple of pages will not increase as much compared with source code difference and can be around 2mb if really optimised
On a side note, please don't use kmdc in any apps that you care about. It's still way too experimental and the API will definitely change.
For now I'd recommend plain web compose with tailwind css
f
I see. Just testing current status with simple app
a
We are working with Kotlin/JS team to decrease bundle size. There’s space for optimisations.
🎉 9