{"id":13447349,"url":"https://github.com/GoogleChromeLabs/idlize","last_synced_at":"2025-03-21T17:31:19.651Z","repository":{"id":33008742,"uuid":"149314402","full_name":"GoogleChromeLabs/idlize","owner":"GoogleChromeLabs","description":"Helper classes and methods for implementing the idle-until-urgent pattern","archived":true,"fork":false,"pushed_at":"2023-04-29T10:20:47.000Z","size":106,"stargazers_count":1063,"open_issues_count":22,"forks_count":43,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-10-04T09:26:08.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://philipwalton.com/articles/idle-until-urgent/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleChromeLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2018-09-18T15:52:27.000Z","updated_at":"2024-09-27T12:00:38.000Z","dependencies_parsed_at":"2024-01-06T01:57:37.781Z","dependency_job_id":"d2c4c785-fccc-44f3-8471-bc303e3d1193","html_url":"https://github.com/GoogleChromeLabs/idlize","commit_stats":{"total_commits":8,"total_committers":4,"mean_commits":2.0,"dds":0.375,"last_synced_commit":"836cbc2c975749e259e94589e3d064c835836d1a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fidlize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fidlize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fidlize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fidlize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleChromeLabs","download_url":"https://codeload.github.com/GoogleChromeLabs/idlize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817219,"owners_count":16885478,"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-31T05:01:15.103Z","updated_at":"2024-10-28T10:31:15.526Z","avatar_url":"https://github.com/GoogleChromeLabs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# Idlize\n\nHelper classes and methods make it easier for developers to implement the [*idle-until-urgent*](https://philipwalton.com/articles/idle-until-urgent/) pattern and leverage the [`requestIdleCallback()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) API.\n\n## Installation\n\nYou can install this library from npm by running:\n\n```sh\nnpm install idlize\n```\n\n## Usage\n\nThis library is a collection of helper methods and classes (not a single bundle). As such, each helper should be imported separately. All public helpers are released at the level of the project, so they can be imported by directly referencing the helper's `.mjs` file.\n\n```js\nimport {defineIdleProperty} from 'idlize/defineIdleProperty.mjs'\nimport {defineIdleProperties} from 'idlize/defineIdleProperties.mjs'\nimport {cIC, rIC} from 'idlize/idle-callback-polyfills.mjs'\nimport {IdleQueue} from 'idlize/IdleQueue.mjs'\nimport {IdleValue} from 'idlize/IdleValue.mjs'\n```\n\nRefer to each helper's [documentation](/docs) for examples and API usage details:\n\n- [`defineIdleProperty.mjs`](/docs/defineIdleProperty.md)\n- [`defineIdleProperties.mjs`](/docs/defineIdleProperties.md)\n- [`idle-callback-polyfills.mjs`](/docs/idle-callback-polyfills.md)\n- [`IdleQueue.mjs`](/docs/IdleQueue.md)\n- [`IdleValue.mjs`](/docs/IdleValue.md)\n\n## Browser Support\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/chrome/chrome_48x48.png\" alt=\"Chrome\"\u003e\u003cbr\u003e\n      ✔\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/firefox/firefox_48x48.png\" alt=\"Firefox\"\u003e\u003cbr\u003e\n      ✔\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/safari/safari_48x48.png\" alt=\"Safari\"\u003e\u003cbr\u003e\n      ✔\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/edge/edge_48x48.png\" alt=\"Edge\"\u003e\u003cbr\u003e\n      ✔\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png\" alt=\"Internet Explorer\"\u003e\u003cbr\u003e\n      9+\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/39.2.2/src/opera/opera_48x48.png\" alt=\"Opera\"\u003e\u003cbr\u003e\n      ✔\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nThis code has been tested and known to work in all major browsers as well as Internet Explorer back to version 9.\n\n## License\n\n[Apache 2.0](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fidlize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleChromeLabs%2Fidlize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fidlize/lists"}