Walter Davis wrote in post #954576: > On Oct 15, 2010, at 10:15 AM, dbkbali wrote: > >> From your extensive knowledge would there be any design or performance >> advantage in refactoring so that the browser requests a pure html >> partial only? > > I am guessing here what Marnen's intention was, but I believe he was > saying that the browser should not require a dynamic JavaScript to do > the magic. A static JavaScript, receiving dynamic data and / or html > from Rails should be able to manage your entire interaction without > trouble. Dynamic JS was the anti-pattern here, as far as I can tell.
You are correct. I believe fairly strongly that, for reasons of performance and maintainability, JavaScript files should in general be static. It also seems to be the case that the (perceived) need for dynamic JS is usually a symptom of a lurking design problem. > > Walter Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.