[docutils:feature-requests] #78 Support lazy loading for image and figure

"Günter Milde" via Docutils-develop <[email protected]>
Newsgroups gmane.text.docutils.devel
Message-ID </p/docutils/feature-requests/78/d6d45e35fc9b8ba4ef038653152ddc7542ceb433.feature-requests@docutils.p.sourceforge.net>
See [feature-requests:#40] for discussion about a matching option for the "image" directive to configure the behaviour for individual images.


---

**[feature-requests:#78] Support lazy loading for image and figure**

**Status:** closed-fixed
**Group:** Default
**Created:** Sun Mar 28, 2021 10:40 PM UTC by Tim Hoffmann
**Last Updated:** Sun Oct 31, 2021 10:00 AM UTC
**Owner:** nobody


Lazy loading can be achieved by adding a `loading` attribute to the `<img>` tag in HTML `<img ... loading="lazy">`.

https://html.spec.whatwg.org/multipage/urls-and-fetching.html#lazy-loading-attributes

The ReST code should probably look like this:
~~~
.. image:: test.png
   :loading: lazy
~~~
and 
~~~
.. figure:: test.png
   :loading: lazy
~~~



---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/feature-requests/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.