{"id":13526964,"url":"https://github.com/CreateJS/PreloadJS","last_synced_at":"2025-04-01T09:31:01.291Z","repository":{"id":2530372,"uuid":"3506930","full_name":"CreateJS/PreloadJS","owner":"CreateJS","description":"PreloadJS makes preloading assets \u0026 getting aggregate progress events easier in JavaScript. It uses XHR2 when available, and falls back to tag-based loading when not.","archived":false,"fork":false,"pushed_at":"2023-07-24T16:54:01.000Z","size":37087,"stargazers_count":2872,"open_issues_count":66,"forks_count":759,"subscribers_count":122,"default_branch":"master","last_synced_at":"2025-03-27T10:08:43.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://createjs.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CreateJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2012-02-21T18:48:33.000Z","updated_at":"2025-03-12T00:55:29.000Z","dependencies_parsed_at":"2024-01-03T04:06:32.237Z","dependency_job_id":"d2058ba2-ace8-4e75-b9c9-6a1d15bab83d","html_url":"https://github.com/CreateJS/PreloadJS","commit_stats":{"total_commits":595,"total_committers":24,"mean_commits":"24.791666666666668","dds":"0.41848739495798315","last_synced_commit":"eab00cf50fe2f6993c75e04ad7f7e5e9c9e9f083"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FPreloadJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FPreloadJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FPreloadJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CreateJS%2FPreloadJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CreateJS","download_url":"https://codeload.github.com/CreateJS/PreloadJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563355,"owners_count":20797443,"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-08-01T06:01:38.488Z","updated_at":"2025-04-01T09:30:56.787Z","avatar_url":"https://github.com/CreateJS.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","目录","Libraries"],"sub_categories":["JavaScript"],"readme":"# PreloadJS\n\nPreloadJS is a library to make working with asset preloading easier. It provides a consistent API for loading different\nfile types, automatic detection of XHR (XMLHttpRequest) availability with a fallback to tag-base loading, composite\nprogress events, and a plugin model to assist with preloading in other libraries such as [SoundJS](http://www.createjs.com/soundjs/).\n\n## Example\n\n```javascript\nvar queue = new createjs.LoadQueue(false);\nqueue.on(\"fileload\", handleFileComplete);\nqueue.loadFile('http://createjs.com/assets/images/png/createjs-badge-dark.png');\nfunction handleFileComplete(event) {\n\tdocument.body.appendChild(event.result);\n}\n```\n\n## Support and Resources\n* Find examples and more information at the [PreloadJS web site](http://www.preloadjs.com/)\n* Read the [documentation](http://createjs.com/docs/preloadjs/)\n* Discuss, share projects, and interact with other users on [reddit](http://www.reddit.com/r/createjs/).\n* Ask technical questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/preloadjs).\n* File verified bugs or formal feature requests using Issues on [GitHub](https://github.com/createjs/PreloadJS/issues).\n* Have a look at the included [examples](https://github.com/CreateJS/PreloadJS/tree/master/examples) and \n[API documentation](http://createjs.com/docs/preloadjs/) for more in-depth information.\n\nBuilt by [gskinner.com](http://www.gskinner.com), and is released for free under the MIT license, which means you can\nuse it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a requirement.\n\n\n## Classes\n\n**LoadQueue**\nThe main class that manages all preloading. Instantiate a LoadQueue instance, load a file or manifest, and track\nprogress and complete events. Check out the [docs](http://createjs.com/docs/preloadjs/) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCreateJS%2FPreloadJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCreateJS%2FPreloadJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCreateJS%2FPreloadJS/lists"}