Best Practice to add UI enhancements to multiple Backbone Marionette views
问题 So I was what the best way for all views in an application to have actions performed on an element. In a non single page application you would run say: $(document).ready(function() { $('.autosize').autosize(); }); to apply autosize function to all elements with the autosize class on every page. Now in a Backbone Marionette app to do this you could perform that in each view with onDomRefresh or similar but for things that affect 90% of views you'd want this to run automatically somehow. I don