Skip to content

Comments

refactor: make images dynamically loaded#149

Merged
ehrelevant merged 17 commits intomainfrom
refactor/dynamic-images
Oct 24, 2025
Merged

refactor: make images dynamically loaded#149
ehrelevant merged 17 commits intomainfrom
refactor/dynamic-images

Conversation

@jgmejilla
Copy link
Contributor

@jgmejilla jgmejilla commented Oct 22, 2025

Closes #146.

This PR changes how most images (specifically, images of members and events) are loaded. Rather than having the images be part of the build file, they are now fetched from an external server, and this drastically reduces the build size.

@jgmejilla jgmejilla changed the title Refactor/dynamic images refactor: make images dynamically loaded Oct 22, 2025
@ehrelevant ehrelevant self-requested a review October 22, 2025 12:50
Copy link
Contributor

@ehrelevant ehrelevant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much, and good work on this PR!

Admittedly, I'm very late with my review on this, and I would like to apologize for that. I may also need to commit the requested changes myself just so we can get this out in time.

I just have a couple of changes I'd like to request. In particular, I'm opting that we go back to using loading="lazy" since, in retrospect, I don't believe eager loading offers any advantage over lazy loading for our case. Additionally, make sure to pass the linting and formatting checks.

For future work, we should consider setting up a CDN to speed up image loading and handle the distribution of images.

PS: Please work on a branch of a fork rather than directly on a branch of this repository. This isn't strictly necessary, but this is just how we prefer contributions to be done on this repository.

jgmejilla and others added 5 commits October 24, 2025 14:48
Co-authored-by: Ehren Castillo <59799738+ehrelevant@users.noreply.github.com>
Co-authored-by: Ehren Castillo <59799738+ehrelevant@users.noreply.github.com>
Co-authored-by: Ehren Castillo <59799738+ehrelevant@users.noreply.github.com>
fix(EventCard): make image expand as expected

Co-authored-by: Ehren Castillo <59799738+ehrelevant@users.noreply.github.com>
Copy link
Contributor

@ehrelevant ehrelevant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, LGTM!!!

We'll have to review this PR again in the future, but this is more than enough given our current time constraints. Thank you again, and congrats to both of you on your first PR to this repository!

@ehrelevant
Copy link
Contributor

Oh, and one additional thing to mention. Please read RFC-01 when you have the time. Particularly, section 4.2 on signing keys. Thanks!

@ehrelevant ehrelevant merged commit fa69394 into main Oct 24, 2025
2 checks passed
@ehrelevant ehrelevant deleted the refactor/dynamic-images branch October 24, 2025 08:11
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.

Update people's page for 2526A

3 participants