I have a web page, which always takes 2 seconds to load the SVG images when it is opened for the first time, and when the page is loaded next time, since the SVG files are cached by the browser, the page will show the SVG files immediately.
Now I want to show the loading on the page until the SVG images are loaded completely on the page, the SVG images are embedded in CSS, maybe I could do the ajax to load the image, but now the key issue is how do I know if the SVG image is cached or not, so if I know the image is cached, no need to send the request, otherwise send the request asking for the image.