{"id":13719368,"url":"https://github.com/adibfirman/react-lazy-viewport","last_synced_at":"2025-05-07T11:31:31.462Z","repository":{"id":55321109,"uuid":"218665762","full_name":"adibfirman/react-lazy-viewport","owner":"adibfirman","description":"⚛️ Load your react component based on viewport browser","archived":false,"fork":false,"pushed_at":"2020-12-30T05:21:14.000Z","size":1077,"stargazers_count":26,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-04-23T01:18:08.437Z","etag":null,"topics":["lazy-loading","react","reactjs"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/react-lazy-viewport-example-g44en","language":"TypeScript","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/adibfirman.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":"2019-10-31T02:13:44.000Z","updated_at":"2023-01-29T15:21:02.000Z","dependencies_parsed_at":"2022-08-14T21:02:39.846Z","dependency_job_id":null,"html_url":"https://github.com/adibfirman/react-lazy-viewport","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibfirman%2Freact-lazy-viewport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibfirman%2Freact-lazy-viewport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibfirman%2Freact-lazy-viewport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibfirman%2Freact-lazy-viewport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adibfirman","download_url":"https://codeload.github.com/adibfirman/react-lazy-viewport/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252868849,"owners_count":21816925,"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":["lazy-loading","react","reactjs"],"created_at":"2024-08-03T01:00:47.243Z","updated_at":"2025-05-07T11:31:30.071Z","avatar_url":"https://github.com/adibfirman.png","language":"TypeScript","funding_links":[],"categories":["Open Source Project"],"sub_categories":["Utility"],"readme":"# React Lazy Viewport\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://github.com/adibfirman/react-lazy-viewport/pulls)\n[![npm version](https://badge.fury.io/js/react-lazy-viewport.svg)](https://badge.fury.io/js/react-lazy-viewport)\n[![Bundlephobia](https://badgen.net/bundlephobia/min/react-lazy-viewport)](https://bundlephobia.com/result?p=react-lazy-viewport@latest)\n[![Bundlephobia](https://badgen.net/bundlephobia/minzip/react-lazy-viewport)](https://bundlephobia.com/result?p=react-lazy-viewport@latest)\n\nLoad your React Component based on viewport, this library using [Intersection Observer](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver) if your app targeting to not modern browser please adding this [Polyfill](https://www.npmjs.com/package/intersection-observer).\n\n## Features\n\n- [x] Type safe\n- [ ] Preload component\n- [x] SSR Support\n\n## Instalation\n\n```\n$ yarn add react-lazy-viewport\n$ npm i react-lazy-viewport\n```\n\n## Demo\n\nWe assume we have some code like this.\u003cbr/\u003e\n![example code](./docs/example-code.png)\u003cbr/\u003e\nand then if you open the dev tools, the file will be loaded based on viewport\n![example code](./docs/example-result.gif)\n\n## Contribute \u0026 Help\n\n- Fork and send Pull Requests are welcome\n- Submit an issues\n- A new feature requests\n\n## License\n\nThis library is [MIT licensed](https://github.com/adibfirman/react-lazy-viewport/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibfirman%2Freact-lazy-viewport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadibfirman%2Freact-lazy-viewport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibfirman%2Freact-lazy-viewport/lists"}