Submit

Back to the channels

#primate

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

Search posts