Silverlight uses the application library cache to reduce the xap size

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.