Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
fengkx Merge pull request #1 from L1cardo/master
docs:add installation instruction
Latest commit d9a47b1 Oct 2, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib fix(add_attr): improve regex Sep 18, 2019
.gitignore chore:disable lock file Sep 15, 2019
.npmrc chore:disable lock file Sep 15, 2019
LICENSE Initial commit Sep 14, 2019 Update Oct 2, 2019
index.js fix: remove reqire hexo-log Sep 16, 2019
package.json 1.0.2 Sep 18, 2019


As is known, Chrome76 start to support native lazy load. And Firefox also has a open bug for this feature.

For more infomation about native lazy load go ahead and see here

This plugin add lazy load attribute to img tag.


npm install hexo-native-lazy-load --save


Add following setting to the site config file. That mean the _config,yml in root directory.

lazy_load: #native load
  enable: true

The plugin only add attribute in post page by default. To add attribute in other page as well set lazy_load.all to true

  enable: true
  all: true

By default it will add fallback polyfill use lazysizes. It can be disable by setting lazy_load.fallback to false

  enable: true
  fallback: false
You can’t perform that action at this time.