CleanShaved
summary
A small Ruby gem called CleanShaved wraps Handlebars and a Rails helper and pre-compiles templates on the server into ready-to-run JavaScript so phones do not parse and compile mustache at runtime. The demo shows the mustache template disappearing after server-side compilation and the page using the precompiled script tag. It claims measurable improvement on slower iOS and Android browsers, is on GitHub and available on RubyGems, and reduces mobile CPU work.
AI-written summary · about
related talks
41mYak Shaving is Best Shaving
11mMicrotalk: Building a Theme Engine w/ Ruby Mustache
35mWriting web application in Ruby
44m"The View Is Clear from Here"
28mLa nouvelle vague
28mCompilers: The New Frontier In Web Performance
33mSecrets of the Glimmer VM
24mReusing your frontend JS on the server with The Ruby Racer and/or Ruby Rhino
