Pull loading into a function, to support delayed loading. E.g., multipage templates that do not set the callback until later in the web.