Submit

Back to the channels

#primate

  1. * jreicher joined #primate
  2. * phaleth joined #primate
  3. blue phaleth: hi
  4. phaleth hi blue
  5. blue phaleth: so I've converted the website to marko, which resulted in a bundle size reduction of around 40%
  6. blue 107 -> 71K
  7. blue I still have to test a few things and optimise, but it's looking good
  8. phaleth oh, that's very promising
  9. phaleth I thought half of the thing is garbage but for sure there's gotta be some runtime
  10. blue since 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
  11. phaleth I assume you've not pushed the changes to master yet?
  12. blue nope, still local, should be out today or tomorrow
  13. phaleth ok, no hurry
  14. blue but everything works as far as I can see
  15. phaleth not sure about the mds? you mean paths to all those md files are bundled in?
  16. blue the mds themselves are bundled in
  17. phaleth yeah, but not client side right?
  18. phaleth I've noticed there is a router, at least for docs that does some regex magic
  19. phaleth I mean route
  20. blue I think clientside as well. let me check that
  21. phaleth that's not the case with current client side app bundle
  22. blue yeah, I just checked
  23. blue they're not in the client app
  24. phaleth ok, but well if marko is this good then prolly we should use marko for repopack site as well
  25. blue my thoughts exactly
  26. blue 107 to 71 is a pretty significant drop in code size
  27. phaleth and I hope it has less magic actually
  28. phaleth the current bundle is 111kBs
  29. blue well, even better
  30. blue I checked it before I converted, no idea if I changed something
  31. phaleth maybe, but obviously not to worse
  32. blue so I have chatgpt analyse the bundle, it says:
  33. blue 24.5 KB Compiled Marko app templates + site data
  34. blue 22.9 KB Marko DOM runtime/helpers
  35. blue 23.0 KB Primate client runtime
  36. blue 1.7 KB root/bootstrap glue
  37. phaleth is primate client runtime a thing?
  38. blue not really sure why the primate runtime would be 23.0 KB, should look into that
  39. blue yes 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
  40. blue anyway, is likely some kind of hallucination
  41. blue clankers are notoriously bad at dealing with big files
  42. phaleth I think clankers are just notoriously bad
  43. blue yes, I would subscribe to that
  44. blue anyway, regardless of what the rest is, this reduction is great already
  45. blue this would bring us down to roughly 26 KB gzip and 23 KB brotli
  46. phaleth yeah, I'd not worry about that before running benchmarks
  47. phaleth not gonna fall into brotli trap :)
  48. blue lol
  49. blue in the future, could be nice to be able to add a sourcemap to production builds if you add --sourcemap
  50. blue so you can analyse bundles better
  51. phaleth google can try to penalize websites all it wants because of not using brotli, but that's obvious nonsense
  52. blue I think google is obvious nonsense
  53. phaleth google is too focused on trying to own the interwebz
  54. blue ya

Search posts