Skip to content

Loading Views and Indicators

Brian Mann edited this page Jul 15, 2013 · 3 revisions

A commonly asked question is how to handle "Loading Views" with Marionette. Be it some sort of "spinner" image, or another transition or animation. Some have suggested using empty views, or extending regions. This implementation is 100% more robust than either of those.

I've written an entire screencast about this topic. The Loading Component we build is super flexible, and it doesn't alter or affect any of your existing views.

  • it can prevent an entire layout from showing
  • or be used in only one region
  • it supports multiple loading indicators on one page
  • it allows for an unlimited amount of dependencies (models / collections)
  • and it can have multiple transitions (spinners, opacity, etc)

The screencast is here: Loading Views