{"id":18822015,"url":"https://github.com/jawil/lazyimages","last_synced_at":"2025-04-14T01:04:06.331Z","repository":{"id":112869589,"uuid":"83057071","full_name":"jawil/lazyImages","owner":"jawil","description":"基于ES6的轻量级，高性能，简便的图片懒加载 🐈","archived":false,"fork":false,"pushed_at":"2017-05-30T16:03:24.000Z","size":69,"stargazers_count":42,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T01:03:45.413Z","etag":null,"topics":["es6","javascript","js","lazy","lazy-loading","lazyload-images","plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jawil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-24T15:47:28.000Z","updated_at":"2023-07-27T08:25:05.000Z","dependencies_parsed_at":"2023-04-14T11:47:16.365Z","dependency_job_id":null,"html_url":"https://github.com/jawil/lazyImages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawil%2FlazyImages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawil%2FlazyImages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawil%2FlazyImages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jawil%2FlazyImages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jawil","download_url":"https://codeload.github.com/jawil/lazyImages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804803,"owners_count":21164134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","javascript","js","lazy","lazy-loading","lazyload-images","plugin"],"created_at":"2024-11-08T00:47:06.913Z","updated_at":"2025-04-14T01:04:06.322Z","avatar_url":"https://github.com/jawil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 基于ES6的轻量级，高性能，简单的图片懒加载插件\n\n\u003e[http://codepen.io/jawil/full/EWJRMN/](http://codepen.io/jawil/full/EWJRMN/)\n\n ```text\n  * [lazyImage plugin]\n  * 基于ES6的轻量级，高性能，简单的图片懒加载插件\n  * @Author  jawil\n  * @date    2017-05-22\n  * @param   {object}   插件配置参数\n ```\n\n#### 示例：\n\n ```JavaScript\n // 默认配置\n new Lazy({\n        containerId: window, //图片顶层容器\n        offset: 100, //在定义可视区的范围内开始加载\n        throttle: 250, //250ms触发一次元素scroll时间，函数节流防抖\n        unload: false, //一旦图片不在可视区就移除已经加载的图片\n        callback: function(element, op) { //图片加载完成之后的回调函数\n            //doSomething\n        })\n ```\n\n#### 效果图\n\n图片有点大，稍等片刻。建议上面Demo效果预览地址进行预览。\n\n![](https://segmentfault.com/img/remote/1460000008997803?w=444\u0026h=575)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjawil%2Flazyimages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjawil%2Flazyimages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjawil%2Flazyimages/lists"}