I have a SVG
If you are using D3 library then you can use following to load svg image dynamically.
d3.select("body") //select body in html
.append("svg") //add svg element in body tag
.append("image") // add image tag in svg element
.attr('xlink:href',"image.svg") //set href property of image element..
.attr("width",50) //set width of image
.attr("height",50) //set height of image
This can be very useful for those who are using D3 library.