{"id":16124300,"url":"https://github.com/jongacnik/imgload","last_synced_at":"2025-04-06T12:22:47.446Z","repository":{"id":36492613,"uuid":"40798236","full_name":"jongacnik/imgload","owner":"jongacnik","description":"Load image","archived":false,"fork":false,"pushed_at":"2015-08-16T20:24:42.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T18:18:52.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jongacnik.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}},"created_at":"2015-08-16T04:00:54.000Z","updated_at":"2019-05-22T21:36:34.000Z","dependencies_parsed_at":"2022-09-06T11:00:42.114Z","dependency_job_id":null,"html_url":"https://github.com/jongacnik/imgload","commit_stats":null,"previous_names":["amongiants/imgload"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fimgload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fimgload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fimgload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fimgload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongacnik","download_url":"https://codeload.github.com/jongacnik/imgload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247479526,"owners_count":20945476,"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":[],"created_at":"2024-10-09T21:20:30.256Z","updated_at":"2025-04-06T12:22:47.423Z","avatar_url":"https://github.com/jongacnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imgload\n\nimgload loads an image src and fires events (properly fires even if image is cached!).\n\n**For radical image loading, use the module built with imgload: [Mad Basic Loader](https://www.npmjs.com/package/mbl).**\n\n## Getting Started\n\nimgload is meant to be consumed in a [CommonJS](http://www.commonjs.org/), [Browserify](http://browserify.org/) environment (though you can also use a pre-bundled version, more below):\n\n\tnpm i imgload\n\n## Usage\n\n\t// require\n\tvar imgload = require('imgload')\n\n\t// setup\n\tvar loadme = imgload('image.jpg')\n\n\t// start!\n\tloadme.start()\n\n### Events\n\nEvents are fired. Bind to events like so:\n\n\tloadme.on('error', function(data) {\n\t\t// triggered on image error\n\t})\n\n\tloadme.on('load', function(data) {\n\t\t// triggered on image load\n\t})\n\n\tloadme.on('always', function(data) {\n\t\t// triggered on image load\n\t})\n\nThe `on` method returns `this` for chainability:\n\n\tloadme\n\t\t.on('error', beep)\n\t\t.on('load', bop)\n\t\t.on('always', boop)\n\n## Bundled Version\n\nIf you don't want to mess with a build process you can also include the pre-bundled version found in `dist/imgload.bundled.js` in your project which exposes `imgload()` globally.\n\n## Todo\n\n- Tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fimgload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongacnik%2Fimgload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fimgload/lists"}