Chat Logs

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