{"id":15774942,"url":"https://github.com/katt/promise-click","last_synced_at":"2025-06-28T17:06:31.651Z","repository":{"id":140087970,"uuid":"13244082","full_name":"KATT/promise-click","owner":"KATT","description":null,"archived":false,"fork":false,"pushed_at":"2014-01-24T15:37:02.000Z","size":332,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-04T16:41:35.825Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KATT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-01T13:08:08.000Z","updated_at":"2014-01-24T15:37:03.000Z","dependencies_parsed_at":"2023-03-13T10:44:28.776Z","dependency_job_id":null,"html_url":"https://github.com/KATT/promise-click","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KATT/promise-click","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Fpromise-click","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Fpromise-click/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Fpromise-click/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Fpromise-click/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KATT","download_url":"https://codeload.github.com/KATT/promise-click/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Fpromise-click/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262465750,"owners_count":23315638,"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-04T16:41:33.958Z","updated_at":"2025-06-28T17:06:31.592Z","avatar_url":"https://github.com/KATT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promise Click\n\nPreload content of links before clicking\n\n## Getting Started\nDownload the [production version][min] or the [development version][max].\n\n[min]: https://raw.github.com/KATT/promise-click/master/dist/promise-click.min.js\n[max]: https://raw.github.com/KATT/promise-click/master/dist/promise-click.js\n\nIn your web page:\n\n```html\n\u003cscript src=\"jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"dist/promise-click.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\njQuery(function($) {\n  $(document).on('promiseclick', 'a.ajax', function(event) {\n\t  event.preventDefault();\n\t  var $this = $(this);\n\n\t  event.data.promise.done(function (data) {\n\t    // do something with the data\n\t  });\n\t});\n});\n\u003c/script\u003e\n```\n\n## Documentation\n_(Coming soon)_\n\n## Examples\nSee [`demos/`](demos/index.html).\n\n## Todo / wish list\n\n* Delay mouseover promise with X milliseconds\n* Options\n\t* Mouseover delay\n\t* Override promise generation\n\t* Auto `preventDefault` on click\n* Unit tests\n* Clean-up old promises\n* Prevent caching on rejected promises?\n\n### Implemented\n\n* Implement as a jQuery event, `jQuery.Event.promsieclick`\n* Ability to unbind\n* Support [virtual mouse][vclick]\n* Clean-up interface (jQuery `.on()`-esque?)\n\n\n[vclick]: http://api.jquerymobile.com/vclick/\n\n## Release History\n_(Nothing yet)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatt%2Fpromise-click","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatt%2Fpromise-click","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatt%2Fpromise-click/lists"}