From d9142a9a463c854e46ca7f462dbf6e2c443bb87e Mon Sep 17 00:00:00 2001 From: Nicolas Doby Date: Sun, 20 Nov 2022 13:03:01 +0100 Subject: [PATCH] feat: add lazy attribute for img --- eleventy.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index 5fdb44c..25f9e56 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -14,7 +14,9 @@ let options = { }; let mdfigcaption = require('markdown-it-image-figures'); let figoptions = { - figcaption: true + figcaption: true, + lazy: true, + async: true, }; const mdLib = markdownIt(options).use(mdfigcaption, figoptions);