user2179256
user2179256

Reputation: 749

Svg Images drawing speed

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

Answers (1)

Ramón Gil Moreno
Ramón Gil Moreno

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

Related Questions