react-cool-img
react-cool-img copied to clipboard
Use url in placeholder
I know this is probably gonna get closed, but i still want to ask you. Is there any way i can use image url as a value for placeholder? Thank you
@MP3Martin I think it might work, just try it and let me know.
No, it does not work. Btw import loadingImage from "./images/loading.gif";
converts the image into base64.
I tried fetching the image and then converting it to base64, but it is too slow, unpredictable and complicated.
Thank you for any solutions or tips.
Edit: why do I want this: CDNs are fast
@MP3Martin Does CDN faster than the local image file?
@MP3Martin Does CDN faster than the local image file?
Yes. The point is that i need it to have input similar to src=""
.
This is just a suggestion
If you think this is unnecessary, you can close this issue. I can live without 0.09 seconds @wellyshen
@MP3Martin It's OK to leave this issue open, I will take time to see if we can support this feature or not.
@MP3Martin It's OK to leave this issue open, I will take time to see if we can support this feature or not.
But isn't necessary, placeholder: Local image, fast
Unnecessary "issue / feature request"