Arguments
func: The function to deferdelay: (optional, default 0) A timeout in millis for how long after DOM rendering you’d like to wait before executing the functionselector: (optional, default null) A selector that, if it is present, will call the function immediately. Used in cases in which you don’t know if the selector is present at a given point in time.
Effects
In Erstwhile, the controller actions are executed before the DOM is rendered for the current URL. For this reason, it occasionally happens that you need to defer some code to run until after the DOM is rendered. This is what defer() lets you do.