Should I use , , or for loading SVG files into a page in a way similar to loading a jpg>
srcsetMost current browsers today support the srcset attribute, which allows specifying different images to different users. For example, you can use it for 1x and 2x pixel density, and the browser will select the correct file.
In this case, if you specify an SVG in the srcset and the browser doesn't support it, it'll fallback on the src.
This method has several benefits over other solutions:
srcset should know how to handle it so that it only downloads the file it needs.