You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when my screen width hits 769px, the atv image is loaded into the div. Works perfectly. However I've noticed that if I resize my browser window, making is smaller then wider, then smaller then wider, etc.... each time the 769px breakpoint is hit, the browser loads the file again. However it's cached, so it doesn't actually download it again, but it still tries to fetch it and gets a 304 not modified response:
You can see the atv.png file loaded multiple times from when I was resizing the window back and forth.
I have yet to be able to recreate this problem on jsfiddle and my current code is on a private server. Any clues as to why this would be happening?
Simply resize the window back and forth with the Chrome Dev Tools open and you will see it keeps trying to fetch the image.
Is this normal expected behavior? Is this because Responsejs if recreating the image dom element each time? Shouldn't it cache them or something so the browser doesn't keep trying to download the same file?
I have a weird issue I can't figure out. I have the following code:
So when my screen width hits 769px, the atv image is loaded into the div. Works perfectly. However I've noticed that if I resize my browser window, making is smaller then wider, then smaller then wider, etc.... each time the 769px breakpoint is hit, the browser loads the file again. However it's cached, so it doesn't actually download it again, but it still tries to fetch it and gets a 304 not modified response:
You can see the atv.png file loaded multiple times from when I was resizing the window back and forth.
I have yet to be able to recreate this problem on jsfiddle and my current code is on a private server. Any clues as to why this would be happening?
Here is my Response code:
The text was updated successfully, but these errors were encountered: