Socket
Socket
Sign inDemoInstall

gatsby-remark-lazy-image-url

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-remark-lazy-image-url

Adds loading='lazy' attribute to images loading from external urls


Version published
Weekly downloads
23
decreased by-65.15%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

gatsby-remark-lazy-image-url

Support native lazy loading of external images inside markdown.

Install

npm install --save gatsby-remark-lazy-image-url

How to Use

// In your gatsby-config.js
plugins: [
  {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [`gatsby-remark-lazy-image-url`]
      }
  }
]

Problem

The official Gatsby image plugin doesn't add lazy loading to external images referenced inside markdown.

This plugin will add loading="lazy" attribute to your images inside the markdown. This plugin is intended to work with external image URLs.

Keywords

FAQs

Last updated on 23 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc