Lazyload mojit - wait till an event is raised

I am looking for a workflow where in I want to defer a mojit execution till an event is raised. Can I do it with LazyLoad mojit ?

1 Reply
  • yes , Lazy load Mojit is a concept...

    You simply create a Mojit with 2 action say loadingMessage and loadContent. loadingMessage should just render a spinner or some loading message. loadContent should load actual content after an event is triggered. by mojitoProxy invoke


    that.mojitProxy.invoke('loadContent', {
                    "params": params
                }, function(){
     node.replace(html || 'error');

Recent Posts

in Yahoo! Mojito