Transferred from
Http://www.dotblogs.com.tw/help/archive/2010/07/22/16705.aspx
The English version of vs2010 is called reduce xap size by using application library caching.
The main function is to separate the components used into different zip files. After the user downloads the files once,
When you enter the page again, you do not need to download the component again if it is not changed,
This can speed up the opening of web pages. Generally, components that do not often change are separated.
First, open a Silverlight application project to add some relatively large components, such as the DataGrid.
For a simple experiment, just pull a few components. The test screen is as follows:
There is a button, a textblock, a label, and a DataGrid respectively.
After compilation, the xap file is generated in clientbin of the web Project,
It can be seen that the size is 221 K, and then use the compression program to check the content