dyfcribyn wrote: > I have a html webpage with SVG elements embedded in it, with > javascript files referenced in the html. One javascript file is > around 400kb in size as some data is hard coded into it. > > My question is, can you reference gzipped javascript files in the > html doc, like you can with just SVG docs, .i.e. no html embedded > with SVG, just an SVG page. I have tried this in the same way as > before, > > ungzipped > > <script language="JavaScript" src="dhbData.js" > type="text/javascript"></script> > > gzipped > > <script language="JavaScript" src="dhbData.js.gz" > type="text/javascript"></script>
I have no clear answer to this question, and I guess it can be browser dependent. But perhaps it would be easier to leave the JS as is (unzipped) but ask the server to deliver it gzipped to users agents accepting this encoding? Ie. probably more than 90% of the current browser market... -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/