Reputation: 749
I need to know how to optimize images in svg.
Which is faster in drawing svg: 1- Embed the image in the svg file as base64 string. 2- Or add the images as Url.
Upvotes: 0
Views: 62
Reputation: 829
Embedding the base64 of the image will send all the data in a single connection to the HTTP server. So it might be faster that using an URL to a different document.
But using an URL you will benefit of browser caching (you can even force loading the image beforehand).
Upvotes: 1