Add a box placeholder to lazy images #28

Closed
opened 2026-10-05 05:10:21 +02:00 by adam · 5 comments
Owner

Currently we don't have any placeholder for the lazy images, we just load an empty space. @cwaring suggested we should use a greybox loading placeholder, which I agree.
We should consider this in the near future.

Currently we don't have any placeholder for the lazy images, we just load an empty space. @cwaring suggested we should use a [greybox loading placeholder](https://www.google.com/search?q=greybox+loading+placeholder&sxsrf=ALeKk02HJnnKLTf9-x8uH_47NczysXFmMQ:1611834035878&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjXt5TZxb7uAhUMTsAKHesFAisQ_AUoAXoECBMQAw&biw=1680&bih=889), which I agree. We should consider this in the near future. <!-- github-sync-id:796063534 -->
adam closed this issue 2026-10-05 05:10:21 +02:00
Author
Owner

Any chance we can steal the one from https://protocol.ai/blog/?

Any chance we can steal the one from https://protocol.ai/blog/? <!-- github-comment-id:769164268 -->
Author
Owner
Screenshot 2021-01-28 at 15 35 18

You're talking about this one?

<img width="271" alt="Screenshot 2021-01-28 at 15 35 18" src="https://user-images.githubusercontent.com/34691925/106161126-7fa18f00-617e-11eb-8d32-4eddfcf9a9cc.png"> You're talking about this one? <!-- github-comment-id:769171935 -->
Author
Owner

That would work, but let's use the IPFS cube. Let me know when you start working on this and I can get you the svg asset.

That would work, but let's use the IPFS cube. Let me know when you start working on this and I can get you the svg asset. <!-- github-comment-id:769202040 -->
Author
Owner

An image (png) would be better so we simply use the src-placeholder prop. Using an svg might be tricky.

An image (png) would be better so we simply use the [`src-placeholder`](https://github.com/alexjoverm/v-lazy-image#props) prop. Using an svg might be tricky. <!-- github-comment-id:769290610 -->
Author
Owner

PNG it is, then. This one is the full dimensions of the hero image if that's helpful. We'll eventually want to replace with something approved by @ericronne, but this will do in his absence.
ipfs-cube-simple

PNG it is, then. This one is the full dimensions of the hero image if that's helpful. We'll eventually want to replace with something approved by @ericronne, but this will do in his absence. ![ipfs-cube-simple](https://user-images.githubusercontent.com/1507828/106187084-61c63100-6162-11eb-977e-5951dc205e71.png) <!-- github-comment-id:769308086 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/ipfs-blog#28