Chat Logs

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