/asciidoctor-lazy-images

Add lazy loading to images rendered by the HTML5 Asciidoctor Backend.

Primary LanguageRuby

Asciidoctor Lazy Images

This is a small extension that adds the lazy loading attribute to every image in a rendered HTML5 file.

This makes it so that the page loads faster and unnecesary bandwidth isn’t consumed.

Installation

Install the gem using

gem install asciidoctor-lazy-images

And compile your files using the -r flag:

asciidoctor -r asciidoctor-lazy-images demo.adoc