facebook

13 simple ways to improve web performance with Rails

13 simple ways to improve web performance with Rails
Average rating: 0
(0 votes)

Thanks! You’ve rated this material!

Previously we mentioned Wroclove.rb conference in our article with the list of Ruby conferences to visit in 2018. This conference was held on March 16-18 in Wrocław, Poland, and there are many great insights from Wroclove.rb we want to share with you. For example, 13 simple ways to improve web performance with Rails. These tips will greatly simplify your work!

Based on a talk ‘Web Performance with Rails’ by Stefan Wintermeyer, from Wroclove.rb, these tools and tricks will result in better Rails and general web performance. These ways are pretty simple and obvious, but many developers don’t know them, have forgotten about them, or they simply don’t care. All the tips are divided into two parts: Rails-related and general web performance tips

13 simple ways to improve web performance with Rails

  1. View: Fragment caching
  2. Database: Counter cache
  3. HTTP: etag and last_modified
  4. Controller + server: Page caching
  5. Uploads and images: ActiveStorage
  6. Use HTTP/2
  7. CDN with HTTP/2 are not so useful
  8. Prefer Brotli over Gzip
  9. Heroku vs Bare Metal (with Heroku you can get a basic setup for your app running in minutes, but it’s not the best fit in the context of web performance)
  10. Resource Hints: dns-prefetch
  11. Resource Hints: prefetch
  12. Resource Hints: prerender
  13. Resource Hints: preconnect

The other additional tips include HTTP/2 PUSH that allows a web server to send resources to a web browser before the browser gets to request them. This can be a performance technique that helps some websites load twice faster.

Summarized from Radek Markiewicz material.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111