timdaub pfp
timdaub
@timdaub.eth
Kiwi News bundle.js. It's sadly 2MB big and I'd like to reduce its size. But I don't see any obvious optimizations.
9 replies
1 recast
2 reactions

Colin pfp
Colin
@colin
are you lazy loading? eg loading connectkit lazily when needed since it's massive
1 reply
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
I switched to script defer now
1 reply
0 recast
0 reaction

timdaub pfp
timdaub
@timdaub.eth
@colin but I don‘t do code splitting, should I? It seems like massive complexity increase
1 reply
0 recast
0 reaction

Colin pfp
Colin
@colin
not sure what your stack is, but code splitting using NextJS isn't very challenging using dynamic imports and can improve first-load JS size significantly. I wrote about this a while back: https://paragraph.xyz/@blog/how-we-reduced-next.js-page-size-by-3.5x-and-achieved-a-98-lighthouse-score
1 reply
0 recast
0 reaction