{"id":26781662,"url":"https://github.com/pixelunion/jquery.finite","last_synced_at":"2025-03-29T08:17:28.448Z","repository":{"id":24394894,"uuid":"27795044","full_name":"pixelunion/jquery.finite","owner":"pixelunion","description":"A better way to work with Jetpack's Infinite Scroll.","archived":false,"fork":false,"pushed_at":"2014-12-11T20:58:20.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-03-26T12:58:30.088Z","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/pixelunion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-10T00:45:51.000Z","updated_at":"2024-03-26T12:58:30.089Z","dependencies_parsed_at":"2022-07-25T10:32:13.753Z","dependency_job_id":null,"html_url":"https://github.com/pixelunion/jquery.finite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelunion%2Fjquery.finite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelunion%2Fjquery.finite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelunion%2Fjquery.finite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelunion%2Fjquery.finite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelunion","download_url":"https://codeload.github.com/pixelunion/jquery.finite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156411,"owners_count":20732397,"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":"2025-03-29T08:17:27.834Z","updated_at":"2025-03-29T08:17:28.438Z","avatar_url":"https://github.com/pixelunion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery.finite\n\nAllows customizing the navigation experience of the Jetpack Infinite Scroll\nmodule. A typical use-case would be adding a loading indicator.\n\n## Usage\n\nFinite allows you to listen for 4 simple events:\n\n```js\nvar el = $(\"#infinite-handle\");\n\nel.finite();\n\nel.on(\"finite-fetch\", function(e){\n  // Triggered when new posts are being fetched\n});\n\nel.on(\"finite-progress\", function(e, percentage){\n  // Triggered every progressInterval with a new percentage\n});\n\nel.on(\"finite-load\", function(e){\n  // Triggered after new posts are loaded and added to the page\n});\n\nel.on(\"finite-end\", function(e){\n  // Triggered when no more posts can be loaded\n});\n```\n\n## Options\n\n`progressInterval` — How often the fake progress events are fired in\nmilliseconds. Defaults to `500`.\n\n`progressFunction` — Used to generate percentages for the `finite-progress`\nevents. Default implementation generates random increasing percentages.\n\n```js\nvar percent = 0;\n\nel.finite({\n  progressInterval: 50,\n  progressFunction: function(){\n    return percent = Math.min(percent + 10, 100);\n  }\n});\n```\n\n## Example\n\nhttp://codepen.io/anon/pen/zxqKjx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelunion%2Fjquery.finite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelunion%2Fjquery.finite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelunion%2Fjquery.finite/lists"}