How to reduce the Load Time of a SL2.0 Beta1 Web Application
Last post 05-06-2008 2:18 PM by Jim Mangaly. 1 replies.
Sort Posts:
05-06-2008 1:58 PM
How to reduce the Load Time of a SL2.0 Beta1 Web Application

Hello dears,

Have you already experience this!? When you build your Silverlight Web Application using Visual Stuio 2008, it takes some time in order to compile and create the .xap package (That´s quite normal). But when launching a splashscreen is displayed and it can take up to 1min until your application is to be seen or runs.

How can I reduce this load Time?  Even by refreshing the Application, there´s a load time to bear. I used some videos and Images as Resources (for the build action) in the App and add them in the myProjectName Project part (and not in the myProjectName_Web project part). Is it wrong for having done like that? The point is, I want to make a presentation and I will have many Animations (respectively coded in an SL Web App.) and I would like them to run sequently (When the first app´s run finished, then I will launch the second and I would like it to run immediately without or with just a little load time).

Your answers will be much appreciated. Thanks in advance ;)

Sylvie 

Sylvie

Joined on 01-09-2008
Posts 26
05-06-2008 2:18 PM
Marked as Answer
Re: How to reduce the Load Time of a SL2.0 Beta1 Web Application

Instead of packaging all your resources in the xap, you could first load the app with minimum resources, and then download the remaining resources (media, assembles etc) behind the scenes on-demand. Use the WebClient class for downloading content on-demand.

You might want to read this post for a better understanding of the different build types - resource, content and none.

Hope this helps,
Jim
http://jimmangaly.blogspot.com/

Please MARK the replies as answer if they answer your question

http://www.identitymine.com/

Jim Mangaly

Joined on 04-21-2008
Kochi, India
Posts 108