perf: improve blog and homepage image performance (lazy-loading, responsive, docs) #264#268
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
9f55300 to
a51d8aa
Compare
|
Hi @xmnlab, This PR now only addresses issue #264 (image performance). I rebased the branch on upstream/main so it has a single commit:
Please review when you have time. |
|
@xmnlab plz review |
|
@Shivampal157 |
|
Hi @xmnlab , I rebased this PR on top of the latest upstream/main and force-pushed. The PR head now matches the latest base (origin/main is included in the history). Could you please re-check? |
|
it seems it is not updated yet:
|
…onsive, docs) OpenScienceLabs#264 Made-with: Cursor
a51d8aa to
d3c033d
Compare
✅ Deploy Preview for opensciencelabsweb ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @xmnlab, I rebased this branch on top of the latest upstream/main and force-pushed. Could you please re-check? |
|
Thanks @Shivampal157 |
|
Thanks for the review and merge 🙌 |
Summary
Improves image performance on the blog and homepage by adding lazy-loading, responsive sizing, and documentation for authors.
Closes #264
Changes
Lazy-loading: Added
loading="lazy"anddecoding="async"to partner logos (partners page + homepage), event thumbnails, team member photos, project badge images, blog related-posts thumbnails, footer CC image, and blog content images (via JS for markdown-rendered images in.post_body).Responsive images: Blog content images (
.post_body img) now usemax-width: 100%,height: auto, and a smallmin-heightto reduce layout shift when dimensions are unknown.Documentation: New "Authoring images (performance and accessibility)" section in CONTRIBUTING.md (alt text, recommended dimensions, optional WebP).
Acceptance criteria (from issue)