All Questions
6 questions
1
vote
0
answers
30
views
JS, Is there a way web client access file cached date of image url?
I have a react component for thumbnails in client,
export default function Thumbnail({
url,
updatedDate, // updatedDate is from server api
}) {
const cachedDate = new Date(.....);
const ...
0
votes
1
answer
1k
views
Open image in the browser instead of downloading it
I have a React component (avatar) that display image and I when I click the image it downloads it to my local machine. I don't want this behavior; I want that when the image clicked it opens in the ...
3
votes
1
answer
3k
views
React How to stop an image from being re-fetched whenever the image tag is re rendered
I am creating a react application and it displays several images that need to be reorganized whenever the user flips there screen or changes screen size, this works the only problem is that whenever ...
2
votes
1
answer
1k
views
react slider prevent image reload on change
I'm making an image slider with React and running into an issue where the images are being re-requested from the remote URL
Here's a JS Fiddle that illustrates the issue: https://jsfiddle.net/iioinc/...
0
votes
1
answer
57
views
Show spinner for loading image to get width/height?
In a react application I need to go from page A to page B in an SPA, and to go from A to B the clicks a button to upload an image. This is the trigger to go to from A to B.
But before either going to ...
1
vote
1
answer
1k
views
Is it possible that browser cache an image and does not make the request?
I am using react to render a simple <img> tag. When I unmount and mount (the image is actually removed from the dom and re-rendered) the image often I can see the image but if I see the devtools ...