Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片延时加载问题 #28

Open
aboutstudy opened this issue Aug 20, 2014 · 1 comment
Open

图片延时加载问题 #28

aboutstudy opened this issue Aug 20, 2014 · 1 comment

Comments

@aboutstudy
Copy link

请问是否有图片延时加载功能,如何设置相关参数?

@balibell
Copy link
Member

在 masnunit.js 里组装单元块的时候,将图片 src 属性改成 srcd 就可以有一定的延迟加载效果。具体是在 onAppend() 方法,也就是 _doLoadImage()

单元节点被添加的时候,默认会调用 _doLoadImage();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants