Nitish Phanse
Nitish Phanse
What do you mean by if image loading fails. 1. Incorrect url or 2. The resource fetch fails.. In case of 1, if it fails due to incorrect url then...
How will this be diff from placeholder
Ahh okay.. got it.. cool makes sense.. :) So this is also something which can be taken as a prop.. so its customisable
@vihangpatel you can make a PR for this if you want.. 👍
Nice idea this.. can try using https://github.com/oliver-moran/jimp
wondering if setting a mock worker class would work ```javascript class Worker { constructor(stringUrl) { this.url = stringUrl; this.onmessage = () => {}; } postMessage(msg) { this.onmessage(msg); } } ```...
Havent had time to see this but maybe this would help ? https://www.npmjs.com/package/jsdom-worker
can you put forth a use case?
So i converted it to a div because if someone supplies a placeholder as a `div` and then the image loads, so we will toggle from a block element to...
One comment, and eslint..