Implemented modified version of github.com/punchcard-cms/opticache on my current project; page render time dropped from 30ms to 1.7ms for a more optimized output. Currently sitting at ~95 on Lighthouse w/o Service Workers, just a server-rendered page.

  • 0
  • 2
  1. Also, to be clear, this perf difference is in raw templating, not total.

    • 0
    • 0
  2. Opticache overrides Express’s res.render function to take the output of the render and asynchronously optimize the output with Critical and HTML Minifer, caching that output, while sending out the result of the render. Subsequent requests get fully-optimized page, on-the-fly

    • 2
    • 7