このページは https://speakerdeck.com/philnash/asset-redux-front-end-performance-on-rails の内容を掲載しています。
Web application speed is paramount. Our users want our application and they want it now! We can o...
Web application speed is paramount. Our users want our application and they want it now! We can optimise application code, database queries and so on, but that's all wasted if the page takes ages to appear. A fast back end and a slow front end can end up leaving a bad taste in the mouth.
Using Rails, we'll look at the best ways to speed up the delivery of your application. Going beyond just minifying our assets, we'll look at techniques to get our site in the user's browser quicker, improving both real and perceived speed. We'll also discover the best tools to use to check out speed and get a better idea of the user's opinion of the site.Once finished, our sites will load in a flash!
Links from the slides:
HTTP Archive trends: http://httparchive.org/trends.php
Google PageSpeed Insights
High Performance Browser Networking by Ilya Grigorik
Perception of speed
Rails guides on gzip compression
Serve gzipped assets on Heroku:
CSS and the critical path:
Patrick Hamann on CSS and the critical path
The Guardian team load CSS from localStorage
Critical path CSS generator
Lossless compression of images:
Asset pipeline preprocessor
Book of Speed