Skip to content

Lazy load post images - #539

Open
ButteredCats wants to merge 2 commits into
redlib-org:mainfrom
ButteredCats:main
Open

ButteredCats wants to merge 2 commits into
redlib-org:mainfrom
ButteredCats:main

Conversation

@ButteredCats

Copy link
Copy Markdown
Contributor

The <image> items don't appear to be a real thing despite displaying the image, and they didn't support loading="lazy" so this basically just sets post images to always use the normal <img> tag and get rid of all the svg stuff that wasn't doing anything.

@dave0003

dave0003 commented Apr 5, 2026

Copy link
Copy Markdown

Compiled and tested. Seems to work fine for me.

It gets rid of the svg stuff for single images. For galleries, it's still the same (doesn't have the svg stuff to begin with).

Sparronator9999 added a commit to Sparronator9999/redlib that referenced this pull request Aug 6, 2026
Sparronator9999 added a commit to Sparronator9999/redlib that referenced this pull request Aug 6, 2026
LucifersCircle added a commit to LucifersCircle/redlib that referenced this pull request Sep 15, 2026
* Add selected upstream quality-of-life improvements

Integrates redlib-org/redlib PRs redlib-org#194, redlib-org#291, redlib-org#394, redlib-org#506, redlib-org#520, redlib-org#521, redlib-org#524, redlib-org#539, redlib-org#542, redlib-org#546, redlib-org#560, and redlib-org#561.

* Format existing RSS helpers

Normalizes the upstream RSS code already present on main so the repository-wide rustfmt PR check passes.

* Satisfy current Clippy checks

Applies behavior-preserving fixes for warnings promoted to errors by the pull-request workflow, including the imported CMAF URL formatter and pre-existing RSS/duplicates code.
pull Bot pushed a commit to maxexcloo/redlib that referenced this pull request Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants