Extending the view construction and creation based on responsive style breakpoints.
When the view is shown, Y.App will look at the dimensions of the browser and determine which view to show.
Browser resizing would trigger destruction of a preserved view, as well, and re-show the current active view (essentially a re-dispatch).
If the dimensions have not changed and the view is preserved, a previously established view will be activated.
If the dimensions have changed, the view will be reconstructed.
Another idea:
Y.App.OnDemandViews
:createView
should be potentially asynchronous and take a callbackmodules
configuration option would specify which modules contain the view constructorcreateView
would check if the constructor exists, otherwise callY.use(modules)