Hi Jean.

If it's only about slow loading of many images, maybe adding the
loading=lazy attribute to <img> tags would help?

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading

I don't think that's available in Sphinx out-of-the-box, but maybe an
extension could be created to enable this?

I could also imagine a Sphinx option html_img_lazy_loading (or
something like that).

Note that a :loading: option has already been suggested:
https://github.com/sphinx-doc/sphinx/issues/6706

cheers,
Matthias

On Wed, Feb 9, 2022 at 12:33 PM Jean Abou Samra <j...@abou-samra.fr> wrote:
>
> Hi,
>
> Apologies if I've missed it somewhere in the documentation
> or the issue tracker, but I can't find an answer to this.
>
> Suppose I have a set of documentation files each containing
> a chapter made of many sections. It can be more convenient
> to keep them in a single file so it is easier to restructure
> the content. The downside is that this file is rendered to
> one single HTML page, which can be overwhelming for the reader
> and/or slow to load, particularly if there are many images,
> as in my use case. I'd prefer to have one HTML page per section.
> Is this possible, possibly in an extension? If I had to
> code it, where could I start?
>
> Thanks,
> Jean
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/74d9be92-873e-fcc1-9da6-6248bd8cb44f%40abou-samra.fr.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFesC-dL5bZcjKzf-2VTSXb3jDDV3K1rnrAyaGgOMV3TxeM8hA%40mail.gmail.com.

Reply via email to