{"id":13411820,"url":"https://github.com/gildesmarais/jekyll-loading-lazy","last_synced_at":"2025-10-09T00:27:04.906Z","repository":{"id":46724898,"uuid":"256308493","full_name":"gildesmarais/jekyll-loading-lazy","owner":"gildesmarais","description":"🧙🏽‍♀️ Automatically adds loading=\"lazy\" to \u003cimg\u003e and \u003ciframe\u003e tags. Load images on your sites lazily without JavaScript.","archived":false,"fork":false,"pushed_at":"2025-03-20T16:19:26.000Z","size":23,"stargazers_count":66,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-07T21:43:47.148Z","etag":null,"topics":["iframe","iframes","image","img","jekyll","jekyll-plugin","lazy","lazy-load","lazy-load-img","lazy-loading","lazyload","lazyload-images","lazyloading","loading","loading-lazy","native","pagespeed","performance","webperformance","webvitals"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/gildesmarais.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"gildesmarais"}},"created_at":"2020-04-16T19:20:10.000Z","updated_at":"2025-05-14T06:02:24.000Z","dependencies_parsed_at":"2022-08-20T11:30:38.041Z","dependency_job_id":null,"html_url":"https://github.com/gildesmarais/jekyll-loading-lazy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gildesmarais/jekyll-loading-lazy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fjekyll-loading-lazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fjekyll-loading-lazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fjekyll-loading-lazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fjekyll-loading-lazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gildesmarais","download_url":"https://codeload.github.com/gildesmarais/jekyll-loading-lazy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildesmarais%2Fjekyll-loading-lazy/sbom","scorecard":{"id":426799,"data":{"date":"2025-08-11","repo":{"name":"github.com/gildesmarais/jekyll-loading-lazy","commit":"778dbfb15cf64e0bc7f950997ced0b902b4940a2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/gempush.yml:1","Warn: no topLevel permission defined: .github/workflows/ruby.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gempush.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/gildesmarais/jekyll-loading-lazy/gempush.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gempush.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/gildesmarais/jekyll-loading-lazy/gempush.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ruby.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/gildesmarais/jekyll-loading-lazy/ruby.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ruby.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/gildesmarais/jekyll-loading-lazy/ruby.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ruby.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/gildesmarais/jekyll-loading-lazy/ruby.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2qc6-mcvw-92cw","Warn: Project is vulnerable to: GHSA-353f-x4gh-cqq8","Warn: Project is vulnerable to: GHSA-59gp-qqm7-cw4j","Warn: Project is vulnerable to: GHSA-5w6v-399v-w3cc","Warn: Project is vulnerable to: GHSA-cgx6-hpwq-fhv5","Warn: Project is vulnerable to: GHSA-crjr-9rc5-ghw8","Warn: Project is vulnerable to: GHSA-fq42-c5rg-92c2","Warn: Project is vulnerable to: GHSA-gx8x-g87m-h5q6","Warn: Project is vulnerable to: GHSA-jc36-42cf-vqwj","Warn: Project is vulnerable to: GHSA-mrxw-mxhj-p664","Warn: Project is vulnerable to: GHSA-pxvg-2qj5-37jq","Warn: Project is vulnerable to: GHSA-r95h-9x8f-r3f7","Warn: Project is vulnerable to: GHSA-v6gp-9mmm-c6p5","Warn: Project is vulnerable to: GHSA-vvfq-8hwr-qm4m","Warn: Project is vulnerable to: GHSA-xc9x-jj77-9p9j","Warn: Project is vulnerable to: GHSA-xh29-r2w5-wx8m","Warn: Project is vulnerable to: GHSA-xxx9-3xcr-gjj3","Warn: Project is vulnerable to: GHSA-2rxp-v6pw-ch6m","Warn: Project is vulnerable to: GHSA-4xqq-m2hx-25v8","Warn: Project is vulnerable to: GHSA-5866-49gr-22v4","Warn: Project is vulnerable to: GHSA-r55c-59qm-vjw6","Warn: Project is vulnerable to: GHSA-vg3r-rm7w-2xgh","Warn: Project is vulnerable to: GHSA-vmwr-mc7x-5vc3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:24:10.262Z","repository_id":46724898,"created_at":"2025-08-19T02:24:10.262Z","updated_at":"2025-08-19T02:24:10.262Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000720,"owners_count":26082879,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["iframe","iframes","image","img","jekyll","jekyll-plugin","lazy","lazy-load","lazy-load-img","lazy-loading","lazyload","lazyload-images","lazyloading","loading","loading-lazy","native","pagespeed","performance","webperformance","webvitals"],"created_at":"2024-07-30T20:01:17.252Z","updated_at":"2025-10-09T00:27:04.890Z","avatar_url":"https://github.com/gildesmarais.png","language":"Ruby","funding_links":["https://github.com/sponsors/gildesmarais","https://liberapay.com/gildesmarais/donate"],"categories":["Images \u0026 Pictures","Credits","Ruby"],"sub_categories":["9. Modifying Element Usage"],"readme":"# jekyll-loading-lazy [![](http://img.shields.io/liberapay/goal/gildesmarais.svg?logo=liberapa)](https://liberapay.com/gildesmarais/donate)\n\nThis plugin adds `loading=\"lazy\"` to all `img` and `iframe` tags on\nyour [Jekyll site](https://jekyllrb.com/). No configuration needed.  \nIf a `loading` attribute is already present nothing is changed.\n\n`loading=\"lazy\"` causes images and iframes to load lazily without any JavaScript.\n[Browser support](https://caniuse.com/#feat=loading-lazy-attr) is growing.  \nIf a browser does not support the `loading` attribute, it will load the resource\njust like it would normally.\n\n⭐ If you like it, star it or [sponsor it](https://liberapay.com/gildesmarais/donate). 💓\n\n## Installation\n\n1. Add the following to your site's `Gemfile`:\n\n   ```ruby\n   gem 'jekyll-loading-lazy'\n   ```\n\n2. add the following to your site's `_config.yml`:\n\n   ```yml\n   plugins:\n     - jekyll-loading-lazy\n   ```\n\n   **Note**: if `jekyll --version` is less than `3.5` use:\n\n   ```yml\n   gems:\n     - jekyll-loading-lazy\n   ```\n\n3. In your terminal, execute:\n\n   ```bash\n   bundle\n   ```\n\n4. (re)start your Jekyll server with:\n\n   ```bash\n   jekyll serve\n   ```\n\n## Usage\n\nInstall the plugin as described above. That's basically all there is.\n\n**💡 Tip:** Note that the `github-pages` gem runs in `safe` mode and only allows [a defined set of plugins](https://pages.github.com/versions/). To use this gem in GitHub Pages, you need to build your site locally or use a CI (e.g. [Github Workflow](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow)) and deploy to your `gh-pages` branch. [Click here for more information.](https://jekyllrb.com/docs/continuous-integration/github-actions/)\n\n### Prevent lazy loading\n\nIn case you want to prevent loading some images/iframes lazily, add `loading=\"eager\"` to their tags. This might be useful to prevent flickering of images during navigation (e.g. the site's logo).\n\nSee the following examples to prevent lazy loading.\n\n\u003cdetails\u003e\n  \u003csummary\u003eMarkdown example\u003c/summary\u003e\n\n```markdown\n![an example](/image.jpg){:loading='eager'}\n```\n\nThis example assumes you're using Kramdown (Jekyll is using it by default).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eHTML example\u003c/summary\u003e\n\n```html\n\u003cimg src=\"/image.jpg\" alt=\"an example\" loading=\"eager\" /\u003e\n```\n\n\u003c/details\u003e\n\n## Contributing\n\n1. [Fork this repository](https://github.com/gildesmarais/jekyll-loading-lazy/fork)\n2. Create your branch (`git checkout -b feat/my-new-feature`)\n3. Commit your changes (`git commit -m 'Add cool feature'`)\n4. Push to the branch (git push origin feat/my-new-feature)\n5. Create a new Pull Request\n\n### Testing\n\n```bash\nrake\n```\n\n## Credits\n\nThanks to @keithmifsud's\n[`jekyll-target-blank`](https://github.com/keithmifsud/jekyll-target-blank)\nwhereon this Jekyll plugin largely bases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildesmarais%2Fjekyll-loading-lazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgildesmarais%2Fjekyll-loading-lazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildesmarais%2Fjekyll-loading-lazy/lists"}