th3online / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Have svg.swf load up earlier in the page load process #216

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Michael N reports:

In terms of performance we've so far talked about the performance of
SVG Web, once it is loaded. However with the Flash renderer I also see
significantly longer load times. Here is what the waterfall chart (as
recorded with firebug) looks like to me with the population pyramid:

http://vis.uell.net/gsvg/img/load_time.png

The svg.swf loads pretty late and my guess is that this causes the
longer load times.
Would it be reasonable to load it earlier?

In my case (as above, empty cache) the svg.swf starts loading 84ms
after the DOMContentLoaded event

The load time of svg.swf then takes:

  0ms DNS-Lookup
  5ms connect
  11ms queing
  20ms waiting for response
  70ms receive data

-----

Perhaps we can do a trick to have the svg.swf file be in the cache much
earlier in the page.

Original issue reported on code.google.com by bradneub...@gmail.com on 10 Aug 2009 at 10:29

GoogleCodeExporter commented 8 years ago
can we maybe load svg.swf from the svg.js script, like what Steve Souders (Even 
Faster Websites) suggests for 
asynchronous script loading 

Script DOM Element

var se = document.createElement('script');
se.src = 'http://anydomain.com/A.js';
document.getElementsByTagName('head')[0] .appendChild(se); 

http://stevesouders.com/cuzillion/?ex=10010

Original comment by mneu...@gmail.com on 10 Aug 2009 at 10:53

GoogleCodeExporter commented 8 years ago
svg.swf now loads earlier for IE. I tried various tricks to get it to 'cache' 
at page
load but 84ms is not that long, and you run into some tricky timing issues so 
the
costs outweight the benefits. Marking as FIXED from r773.

Original comment by bradneub...@gmail.com on 3 Sep 2009 at 9:41