In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The editor today will take you to understand what the function of AJAX CDN is. The knowledge points in the article are introduced in great detail. Friends who feel helpful can browse the content of the article with the editor, hoping to help more friends who want to solve this problem to find the answer to the problem. Let's follow the editor to learn more about "what is the function of AJAX CDN?"
Microsoft launched a new AJAX tool: AJAX CDN the day before yesterday. This tool is released by Microsoft's ASP.NET team for AJAX caching support.
The ASP.NET development team launched a new Microsoft Ajax CDN (Content Delivery Network, content delivery Network) service that provides caching support for AJAX libraries, including jQuery and ASP.NET AJAX. The service is free, does not require any registration, and can be used for commercial or non-commercial purposes.
What does CDN offer?
The content distribution network (CDNs) is made up of "edge cache (edge cache)" servers strategically placed at key Internet network points around the world. These "edge cache" servers can be used to cache and distribute various types of content, including pictures, videos, CSS and JavaScript files.
Using CDN can significantly improve the end-user performance of a Web site because it allows browsers to get and download content faster. For example, for an image request, the browser no longer needs to download across the Internet to your web server, a CDN can provide services directly from the nearby "edge cache" server to satisfy the request, and the edge cache server may be as far as one single network hop from your customer (making it return very fast and your web page loading faster).
What does Microsoft AJAX CDN offer?
Microsoft AJAX CDN makes it very easy to add jQuery and ASP.NET AJAX script libraries to your site, and these scripts are automatically provided by our thousands of geolocation (geo-located) edge cache servers around the world.
For example, if you want to use Microsoft AJAX CDN's jQuery, you just need to add a script logo to the page that uses the standard URL below:
When the browser requests the script file, it is automatically provided by the Edge Cache (edge cache) server of the CDN closest to the end user. This means:
Request processing is much faster than accessing your web server (making end-user web pages load much faster)
You don't have to pay for the bandwidth cost of the file, because the file is free to the server where we pay for the bandwidth (saves you money)
Scripts can be easily cached across sites, which means that if a user has just visited a website that has requested the file, the file no longer needs to be downloaded (because the file is already in the browser's cache).
You can get a complete list of the JavaScript libraries (and related URLs) that we have loaded into our CDN cache here at www.asp.net/ajax/cdn.
When we release a new version of ASP.NET AJAX, we will update the library in CDN and continue to update it to include all JavaScript files released with ASP.NET and Visual Studio (including jQuery, jQuery validation plug-ins, and future releases of additional libraries, etc.).
CDN services are free, available to anyone in the community, and can be used for both commercial and non-commercial purposes. You don't have to register to take advantage of it.
Using Microsoft AJAX CDN in ASP.NET 4. 0 ScriptManager
In addition to allowing you to directly use elements to reference script files, ASP.NET 4.0also simplifies the use of CDN from ASP.NET Web Forms applications that use server controls.
The ASP.NET 4.0control contains a new property called "EnableCdn". After you assign a true value to this property, your application will automatically use Microsoft CDN to request the JavaScript file:
After you enable CDN through ScriptManager, your application will get all the JavaScript files that are usually obtained from System.Web.dll or System.Web.Extensions.dll assemblies from CDN. This includes JavaScript files in ASP.NET AJAX, as well as built-in Web Forms JavaScript files (for example, WebUIValidation.js files for client authentication, and JavaScript files for controls such as TreeView, Menu, and so on).
This provides a good end-user performance improvement and means that users who visit your ASP.NET site no longer need to re-download these files if they have ever visited another ASP.NET site that uses CDN.
Use the fifth preview of ASP.NET AJAX in CDN
In addition to launching the AJAX CDN site, the ASP.NET development team recently released a fifth preview of ASP.NET AJAX. You can download the fifth preview of ASP.NET AJAX (with routine code) on CodePlex at http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=32770.
Now you can use the ASP.NET AJAX library by adding the following script that points to CDN:
These scripts identify references to the beta version of the ASP.NET AJAX library released in September 2009 (/ 0909 / part of URL represents the year and month in which the ASP.NET AJAX version was released).
After adding a script ID that references the ASP.NET AJAX library, you can start using the library on your web page. For example, the following code attaches a client-side DataView control that represents a set of photos to a DIV element in the body of a web page.
The DIV element, whose id is "photos", contains a template for formatting each photo in the photo array, which is declared as follows:
When you render a DataView, the contents of the photos DIV element are displayed (render) once for each photo in the photo array, resulting in the following photos being displayed:
Because ASP.NET AJAX is a pure JavaScript library, the above code works fully in ASP.NET Web Forms, ASP.NET MVC, HTML, and even classic ASP web pages, and it works in all modern browsers.
Thank you for your reading, the above is the whole content of "what is the function of AJAX CDN", learn friends to hurry up to operate it. I believe that the editor will certainly bring you better quality articles. Thank you for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.