
Sam Richard
@Snugug
BBQ lead, ChromeOS DevRel. Mostly food, sometimes design and development, especially for the web. 7008px tall. He/him.
An archive of my Twitter timeline up until I moved to Mastodon. You can find me there at @[email protected]
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.
Also, to be clear, this perf difference is in raw templating, not total.
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