The average enterprise on Netlify ships 140 times per week. Where does your team rank?

ContactSign Up
Community Plugin
View plugin on GitHub


Lazyloads images processed by gatsby-tranformer-wpcontent with using lazysizes

The plugin makes lazyload possible by:

  • Move src and srcset to data-src and data-srcset respectively.
  • Add class lazyload to img tag.

lazysizes has to be installed to make this plugin work.


npm install --save @sekmet/gatsby-wpcontent-lazy-load

npm install --save lazysizes

How to use

// In your gatsby-config.js
plugins: [
    resolve: `gatsby-tranformer-wpcontent`,
    options: {
      plugins: [
// In your gatsby-browser.js
import 'lazysizes'


This is a minimum plugin. Please make an issue when you need more functionalities or code doesn’t work!

© 2023 Gatsby, Inc.