Can SVG render partially if gzipped and chunk-transfer?

I have large, dynamically generated SVGs that are served by a relatively slow internet connection. I am trying to optimize them so that they can be viewed as quickly as possible. If I configure the server to be Content-Encoding: gzip and Transfer-Encoding: chunked, will any SVG users use this and render it partially as it is being transferred? If not, are there any other ways to make it display as-it-stream streams? I could split it into multiple SVG pieces, but that would be a lot of work, I was hoping for a server setup ...

Most common users use IE7 with the Adobe SVG Viewer plugin.

I doubt this is important, but I am working with C # / ASP.NET and IIS6.

+2


a source to share


2 answers


SVG is thread safe (as well as gzipped encoding), so in theory only a partially loaded file can be displayed.

I don't know if IE + SVG actually does this. Try this! Do something equivalent:



echo('<rect…>'); 
flush(); 
sleep(10);
echo('<rect…>');

      

and see if it works.

+1


a source


It looks like at least in Chrome and Firefox browsers SVG partially renders them when rendered directly or internally <iframe>

, but in <img>

it does not render until fully loaded.



0


a source







All Articles