{"id":20406283,"url":"https://github.com/techassi/vue-lazy-image","last_synced_at":"2026-05-18T03:09:46.893Z","repository":{"id":74963229,"uuid":"598847774","full_name":"Techassi/vue-lazy-image","owner":"Techassi","description":"Lazy load images in Vue 3 backed by the IntersectionObserver API","archived":false,"fork":false,"pushed_at":"2023-03-01T22:39:52.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T18:19:54.833Z","etag":null,"topics":["intersection-observer","typescript","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Techassi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-07T23:24:38.000Z","updated_at":"2023-03-02T21:16:37.000Z","dependencies_parsed_at":"2024-01-29T21:16:55.563Z","dependency_job_id":null,"html_url":"https://github.com/Techassi/vue-lazy-image","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"8ba1558a8380c998c1f165392c38390a911cf294"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techassi%2Fvue-lazy-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techassi%2Fvue-lazy-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techassi%2Fvue-lazy-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techassi%2Fvue-lazy-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Techassi","download_url":"https://codeload.github.com/Techassi/vue-lazy-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950619,"owners_count":20047659,"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":["intersection-observer","typescript","vue","vuejs"],"created_at":"2024-11-15T05:16:13.794Z","updated_at":"2025-10-08T06:43:52.260Z","avatar_url":"https://github.com/Techassi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-lazy-image\n\nThis plugin lets you lazy load images making use of IntersectionObserver. This plugin is Vue V3 compatible.\n\n## Planned features\n\n-   Observe images based on class instead of unique ids (make it configurable trough options)\n\n## Usage\n\n### Installation\n\n```shell\nnpm install @techassi/vue-lazy-image --save\n```\n\nor\n\n```shell\nyarn add @techassi/vue-lazy-image\n```\n\n### Basic usage\n\n`main.js`\n\n```js\nimport { createApp } from 'vue';\nimport App from './App.vue';\n\nimport VueLazyImage from '@techassi/vue-lazy-image';\n\ncreateApp(App).use(VueLazyImage).mount('#app');\n```\n\n`YourComponent.vue`\n\n```vue\n\u003ctemplate\u003e\n    \u003clazy-image :src=\"PATH_TO_IMAGE\" :id=\"UNIQUE_ID\"\u003e\u003c/lazy-image\u003e\n\u003c/template\u003e\n```\n\n### Advanced usage\n\n`main.js`\n\n```js\nimport { createApp } from 'vue';\nimport App from './App.vue';\n\nimport VueLazyImage from '@techassi/vue-lazy-image';\n\nconst intersectionObserverOptions = {};\ncreateApp(App).use(VueLazyImage, intersectionObserverOptions).mount('#app');\n```\n\n`YourComponent.vue`\n\n```vue\n\u003ctemplate\u003e\n    \u003clazy-image\n        :src=\"PATH_TO_IMAGE\"\n        :id=\"UNIQUE_ID\"\n        :use-picture=\"TRUE / FALSE\"\n        @EVENT=\"CALLBACK\"\n    \u003e\u003c/lazy-image\u003e\n\u003c/template\u003e\n```\n\nFor detailed Intersection observer options see [here](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#Intersection_observer_options)\n\n#### Available Events\n\n-   `@intersected`: This event triggers when the image intersects with the viewport\n-   `@loaded`: This event triggers when the image is loaded\n-   `@error`: This event triggers when there was an error loading the image\n\n## Contributing / Building\n\nContributions and pull request are welcome!\n\n```shell\ncd vue-lazy-image\nyarn install / npm install\nyarn run build / npm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechassi%2Fvue-lazy-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechassi%2Fvue-lazy-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechassi%2Fvue-lazy-image/lists"}