[LRUG] Fwd: Recommendations for Ruby & Rails optimisation resources

Paul Battley pbattley at gmail.com
Mon Nov 26 07:04:53 PST 2012


On 26 November 2012 13:52, Stephen Best <bestie at gmail.com> wrote:
> "The easiest way to optimize the server’s rendering of templates is to not
> have the server render the templates. We can do this by having by pushing
> rendering logic client-side..."
>
> Personally I'm a big fan of this approach and like to use as little of the
> Rails view layer as possible. Among other things I think that can help your
> design because you don't have to deal with form helpers that are coupled to
> active record.

I'm not sure that I'd call going from rendering in the controlled
environment of the server to doing it in the wild world of browsers
"easiest". In fact, it sounds like replacing one problem with dozens
more, and a lot of tedious and expensive testing and debugging - and
judging by what I see when trying to visit some of these
JavaScript-rendered simple content-based websites on my phone, a lot
of people get it wrong.

Paul.



More information about the Chat mailing list