4 ms·
I'm not sure about `url()` in CSS but `<img>` tags are guaranteed to only be loaded once per URL per page. I would assume that `url()` works the same. This bit
by kevincox 3y ago
I'm not sure about `url()` in CSS but `<img>` tags are guaranteed to only be loaded once per URL per page. I would assume that `url()` works the same.
This bit me when I tried to make a page that reload an image as a form of monitoring. However URL interestingly includes the fragment (after the #) even though it isn't set to the server. So I managed to work around this by appending #1, #2, #3... to the image URL.
https://gitlab.com/kevincox/image-monitor/-/blob/e916fcf2f9ab1aabce13088f89c0ca0b798f5c8c/lib/index.js#L37 https://gitlab.com/kevincox/image-monitor/-/blob/e916fcf2f9a...