datalazyload's People
datalazyload's Issues
onStart方法没有替换src
version 1.0.1
loadImgSrc方法里,
result = (!S.isFunction(onStart)) || (onStart(param) !== false);
这里result只是个boolean,最后使用的仍旧是param.src,不是onStart返回的结果
部分pad上图片懒加载失效
发现三星跟华为的pad上用datalazyload懒加载的图片都出不来,ipad跟nexus上是正常的。估计是data-ks-lazyload中的图片属性没有替换到src。
userConfig未定义的问题
userConfig = self.userConfig,
1、这个userConfig没看到有定义呀
2、还有注释"兼容(1.2)"这个注释啥意思?
Array.prototype.filter called on null or underfined
请问是否可以考虑提供手动触发懒加载的API
有的时候无法仅仅通过位置来判断,比如在快速定位某一个长页面的某个位置时,希望一边触发懒加载,一边把位置移过去。
datalazyload 是否可以添加 srcprefix 和 srcset 配置?
- srcprefix: 用户配置图片前缀,通常来说,一个网站所引图片应该来自同一处,这样 html 中可以少输出一段前缀,脚本里加上;
- srcset:用户配置在不同分辨率下要加载的图片地址或者在源路径基础上需要执行的正则替换,如:
{
srcset: {
'min-width:480px': 'http://...',
'max-width:1200px': [/\d/, 'aa']
}
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.