GithubHelp home page GithubHelp logo

datalazyload's People

Contributors

kissygallery avatar kunhualqk avatar lifesinger avatar lizzie avatar minghe avatar myhere avatar yiminghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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)"这个注释啥意思?

datalazyload 是否可以添加 srcprefix 和 srcset 配置?

@nanqiu

  • srcprefix: 用户配置图片前缀,通常来说,一个网站所引图片应该来自同一处,这样 html 中可以少输出一段前缀,脚本里加上;
  • srcset:用户配置在不同分辨率下要加载的图片地址或者在源路径基础上需要执行的正则替换,如:
{
    srcset: {
        'min-width:480px': 'http://...',
        'max-width:1200px': [/\d/, 'aa']
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.