Thread
#compose-web
    fair_enough

    fair_enough

    7 months ago
    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?
    Big Chungus

    Big Chungus

    7 months ago
    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.
    fair_enough

    fair_enough

    7 months ago
    @Big Chungus ah ok. trying to use your kmdc lib. I hope in one year timespan it will be better 🙂
    jsBrowserProductionRun
    Big Chungus

    Big Chungus

    7 months ago
    We all do. But I think big size reductions will only come with es6 support
    fair_enough

    fair_enough

    7 months ago
    And when it is in roadmap?
    Big Chungus

    Big Chungus

    7 months ago
    Postponed i think
    Good news is that this size increase is a lot less visible for bigger apps as it scales with diminishing increase
    fair_enough

    fair_enough

    7 months ago
    ah, ok, thanks
    Big Chungus

    Big Chungus

    7 months ago
    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
    fair_enough

    fair_enough

    7 months ago
    I see. Just testing current status with simple app
    a

    Akif Abasov [JB]

    7 months ago
    We are working with Kotlin/JS team to decrease bundle size. There’s space for optimisations.