{"id":13426856,"url":"https://github.com/alexrabarts/jquery-cacheimage","last_synced_at":"2025-10-22T16:36:18.947Z","repository":{"id":470261,"uuid":"95190","full_name":"alexrabarts/jquery-cacheimage","owner":"alexrabarts","description":"A simple jQuery plugin for pre-caching images. ","archived":true,"fork":false,"pushed_at":"2013-09-11T18:58:23.000Z","size":117,"stargazers_count":39,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-28T05:12:54.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/alexrabarts/jquery-cacheimage","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/alexrabarts.png","metadata":{"files":{"readme":"README.markdown","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":"2008-12-22T06:07:48.000Z","updated_at":"2023-01-28T14:14:48.000Z","dependencies_parsed_at":"2022-07-16T14:18:16.882Z","dependency_job_id":null,"html_url":"https://github.com/alexrabarts/jquery-cacheimage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrabarts%2Fjquery-cacheimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrabarts%2Fjquery-cacheimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrabarts%2Fjquery-cacheimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexrabarts%2Fjquery-cacheimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexrabarts","download_url":"https://codeload.github.com/alexrabarts/jquery-cacheimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801600,"owners_count":20350105,"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-07-31T00:01:46.806Z","updated_at":"2025-10-22T16:36:18.561Z","avatar_url":"https://github.com/alexrabarts.png","language":"JavaScript","readme":"# cacheImage: a jQuery plugin\n\ncacheImage is a simple jQuery plugin for pre-caching images.  The\nplugin can be used to eliminate flashes of unstyled content (FOUC) and\nimprove perceived page load time.  Callbacks for load, error and abort\nevents are provided.\n\n## Usage\n\nCache an image:\n\n\u003cpre\u003e\n  $.cacheImage('/path/to/image.png');\n  // or if you have images hidden in the DOM:\n  $('#myImage').cacheImage();\n\u003c/pre\u003e\n\nCache several images:\n\n\u003cpre\u003e\n  $.cacheImage(['/path/to/an/image.png', '/path/to/another/image.png'])\n  // or if you have images hidden in the DOM:\n  $('#myImages img').cacheImage();\n\u003c/pre\u003e\n\nAdd some callbacks:\n\n\u003cpre\u003e\n  $.cacheImage('/path/to/image.png', {\n    load    : function (e) { console.log('Loaded',    this, e); },\n    error   : function (e) { console.log('Error',     this, e); },\n    abort   : function (e) { console.log('Aborted',   this, e); },\n    // complete callback is called on load, error and abort\n    complete: function (e) { console.log('Completed', this, e); }\n  });\n\u003c/pre\u003e\n\n# Licensing\n\nLicensed under the MIT:\nhttp://www.opensource.org/licenses/mit-license.php\n\nCopyright (c) 2011 Stateless Systems (http://statelesssystems.com)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrabarts%2Fjquery-cacheimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexrabarts%2Fjquery-cacheimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrabarts%2Fjquery-cacheimage/lists"}