{"id":17333018,"url":"https://github.com/orestbida/link-prefetcher","last_synced_at":"2026-02-13T17:03:28.006Z","repository":{"id":106405546,"uuid":"609368961","full_name":"orestbida/link-prefetcher","owner":"orestbida","description":"Eager link prefetcher.","archived":false,"fork":false,"pushed_at":"2023-03-23T21:25:55.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T07:54:26.281Z","etag":null,"topics":["fast","fetch","hover","links","prefetch"],"latest_commit_sha":null,"homepage":"","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/orestbida.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"orestbida"}},"created_at":"2023-03-04T01:10:27.000Z","updated_at":"2025-09-17T11:30:32.000Z","dependencies_parsed_at":"2023-05-29T19:30:23.099Z","dependency_job_id":null,"html_url":"https://github.com/orestbida/link-prefetcher","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/orestbida/link-prefetcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orestbida%2Flink-prefetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orestbida%2Flink-prefetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orestbida%2Flink-prefetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orestbida%2Flink-prefetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orestbida","download_url":"https://codeload.github.com/orestbida/link-prefetcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orestbida%2Flink-prefetcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fast","fetch","hover","links","prefetch"],"created_at":"2024-10-15T14:59:34.574Z","updated_at":"2026-02-13T17:03:28.002Z","avatar_url":"https://github.com/orestbida.png","language":"JavaScript","funding_links":["https://ko-fi.com/orestbida"],"categories":[],"sub_categories":[],"readme":"# link-prefetcher\n\n![GitHub](https://img.shields.io/github/license/orestbida/link-prefetcher?label=License)\n![GitHub file size in bytes](https://img.shields.io/github/size/orestbida/link-prefetcher/dist/index.esm.js?label=Size)\n[![Build](https://github.com/orestbida/link-prefetcher/actions/workflows/build.yml/badge.svg)](https://github.com/orestbida/link-prefetcher/actions/workflows/build.yml)\n\nA tiny link prefetcher (yet another one in the sea of prefetching tools). Uses `fetch`/`xhr` to prefetch links rather than the `link` tag.\n\n### `prefetchHover()`\nStart prefetching as soon as possible. Abort if the cursor leaves the anchor tag before the prefetch process is done.\n\n### `prefetchVisible()`\nImmediately prefetch all visible links (⚠️ use with caution, can eat up a lot of bandwidth).\n\n## Installation\n\n```bash\nnpm i @orestbida/link-prefetcher\n```\n\n## Usage\n```javascript\nimport { prefetchHover } from 'link-prefetcher';\n\nprefetchHover();\n```\n\nor\n\n```html\n\u003cscript defer src=\"dist/index.umd.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    window.addEventListener('load', () =\u003e {\n        LinkPrefetcher.prefetchHover()\n    });\n\u003c/script\u003e\n```\n\n## License\nDistributed under the MIT License. See [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forestbida%2Flink-prefetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forestbida%2Flink-prefetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forestbida%2Flink-prefetcher/lists"}