![]() ![]() All modern browsers know how to decompress those files. IIS 6 and 7, and Apache as well, provide the option to gzip compress all text files (html, JavaScript, CSS, etc.) sent to the browser. If you are interested in web site performance, you may be interested in this short digression into server compression. The book is extremely hands on - the aim is to improve web site performance today, without wading through a lot of theory first. It covers all environments used by a web site - the web server, the database server, and the browser. ![]() It then shows how to fix those bottlenecks. My recently released book ASP.NET Performance Secrets shows how to pinpoint the biggest performance bottlenecks in your web site, using various tools and performance counters built into Windows, IIS and SQL Server. This package is just one way of improving the performance of your web site. A cache entry is removed when the underlying file is changed, so you'll never serve outdated files. To reduce CPU overhead and disk accesses caused by the package, it caches intermediate results, such as minified files.By default, the package handles missing files silently, without throwing an exception. Helps you detect missing files by throwing an exception when a JavaScript file, CSS file or image is missing.Preloads images immediately when the page starts loading, instead of when the browser gets round to loading the image tags - so your images appear quicker.Converts image file names to lower case, to make it easier for those proxy and browser caches that do case sensitive file name comparisons to find your file in their caches - so they don't request the same file again.This optimizes caching by proxy servers (many proxy servers won't cache files with query strings). Unlike similar packages, doesn't add query strings when combining files or when inserting versions.Uses version ids in file names to ensure the browser picks up new versions of your files right away, so visitor never see outdated files ( details on how this works). Optimizes use of the browser cache by allowing the browser to store JavaScript, CSS and image files for up to a year.This causes the browser to load more JavaScript, CSS and image files in parallel. Lets you configure multiple cookieless domains.This way, the browser no longer sends cookies when it requests those files, reducing wait times for the visitor. Allows you to configure cookieless domains from which to load JavaScript files, CSS files and images.aspx files themselves are not affected, only the HTML sent to the browser. aspx pages by removing white space and comments. Reduces the size of the HTML generated by your.That way, you see your individual files complete with white space and comments while developing, and reap the performance improvement in your live site. Allows you to configure the package so it only kicks in in release mode.That way, they continue to work even if CSS files from several different folders are combined. If a CSS file contains image urls that are relative to the folder containing the CSS file itself, those urls are fixed up by the package. Loading a single large file is often much quicker than loading a series of small files, because that saves the overhead involved in all the request and response messages. JSMIN is less efficient, but handles non-ASCII characters well.Ĭombines JavaScript files and CSS files. Because the YUI minifier doesn't handle non-ASCII characters (such as Chinese), the package automatically uses the JSMIN algorithm for files containing such characters. The package uses the efficient YUI minifier to minify JavaScript and CSS files that are all in English (that is, contain only ASCII characters). ![]() Correctly processes files that contain non-English text such as Chinese.Only JavaScript and CSS files that are loaded from the head sections of your pages are minified. Minification involves stripping superfluous white space and comments. If you just install the package and not do any further configuration, it only minifies and combines JavaScript and CSS files, and than only when the site is in Release mode. The features below can all be switched on and off individually via the web.config file ( full description). DownloadÄownload the package (free) from CodePlex, at. Step by step installation instructions are in the installation section. If you use IIS 6, you'll also need to update the configuration of IIS (no such update needed for IIS 7). Installation is easy - just add a dll, update your web.config and add a small file. The result can be a dramatic improvement in ASP.NET web site performance. The CombineAndMinify package discussed here automatically speeds up the loading of JavaScript files, CSS files and or images (loaded from image tags or from CSS files). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |