seajs支持lazy loading这个功能吗

49 views
Skip to first unread message

Chen Ym

unread,
Apr 6, 2013, 10:40:44 PM4/6/13
to se...@googlegroups.com
如题

Frank Wang

unread,
Apr 6, 2013, 10:42:48 PM4/6/13
to seajs


On Sun, Apr 7, 2013 at 10:40 AM, Chen Ym <chenym...@gmail.com> wrote:
如题

--
You received this message because you are subscribed to the Google Groups "seajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seajs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
王保平 / 玉伯(射雕)
送人玫瑰手有余香

Chen Ym

unread,
Apr 8, 2013, 4:47:38 AM4/8/13
to se...@googlegroups.com
我的意思是比如点开一张图片就会触发看大图的逻辑(这是一个非必要的逻辑,有些用户不会点进去),我想在用户点击预览图的时候加载slide。js。

Longhao Luo

unread,
Apr 8, 2013, 4:57:29 AM4/8/13
to se...@googlegroups.com
img.click(function() {
    require.async('slide', function() {
        // some code ...
   });
});
Reply all
Reply to author
Forward
0 new messages