bluephaleth: so I've converted the website to marko, which resulted in a bundle size reduction of around 40%
blue107 -> 71K
blueI still have to test a few things and optimise, but it's looking good
phalethoh, that's very promising
phalethI thought half of the thing is garbage but for sure there's gotta be some runtime
bluesince the docs directory with the mds is 736K unconverted (which blows up, md -> html) and unminified, but I'd still say probably most of that 71K are the mds
phalethI assume you've not pushed the changes to master yet?
bluenope, still local, should be out today or tomorrow
phalethok, no hurry
bluebut everything works as far as I can see
phalethnot sure about the mds? you mean paths to all those md files are bundled in?
bluethe mds themselves are bundled in
phalethyeah, but not client side right?
phalethI've noticed there is a router, at least for docs that does some regex magic
phalethI mean route
blueI think clientside as well. let me check that
phaleththat's not the case with current client side app bundle
blueyeah, I just checked
bluethey're not in the client app
phalethok, but well if marko is this good then prolly we should use marko for repopack site as well
bluemy thoughts exactly
blue107 to 71 is a pretty significant drop in code size
phalethand I hope it has less magic actually
phaleththe current bundle is 111kBs
bluewell, even better
blueI checked it before I converted, no idea if I changed something
phalethmaybe, but obviously not to worse
blueso I have chatgpt analyse the bundle, it says:
blue24.5 KB Compiled Marko app templates + site data
blue22.9 KB Marko DOM runtime/helpers
blue23.0 KB Primate client runtime
blue1.7 KB root/bootstrap glue
phalethis primate client runtime a thing?
bluenot really sure why the primate runtime would be 23.0 KB, should look into that
blueyes there's a bit of form submission and that kind of stuff, but the website isn't using it, if it gets bundled in, that's for nothing
blueanyway, is likely some kind of hallucination
blueclankers are notoriously bad at dealing with big files
phalethI think clankers are just notoriously bad
blueyes, I would subscribe to that
blueanyway, regardless of what the rest is, this reduction is great already
bluethis would bring us down to roughly 26 KB gzip and 23 KB brotli
phalethyeah, I'd not worry about that before running benchmarks
phalethnot gonna fall into brotli trap :)
bluelol
bluein the future, could be nice to be able to add a sourcemap to production builds if you add --sourcemap
blueso you can analyse bundles better
phalethgoogle can try to penalize websites all it wants because of not using brotli, but that's obvious nonsense
blueI think google is obvious nonsense
phalethgoogle is too focused on trying to own the interwebz