9 votes

PeterD.Compress

PLEASE NOTE: This package does NOT work with umbraco 4.5 or higher. This project is no longer under development because of the introduction of the ClientDependency in umbraco 4.5.

This package works in 2 ways. What I think is the most important is that it looks for javascript-files and stylesheet-files. If there are more than 1 in the header, it replaces the code, combines the files to 1 file and compresses it. 3 major benefits from this:

 

  1. You can create a site like you normally do and if you ever decide to disable compression, you don't need to change any code
  2. Files are being compressed, this reduces the loading time on the client and saves you bandwidth (ie: jquery.js minified is 54kb, compressed it is only 10).
  3. Files are merged. There's maximum 1 js-reference and 1 css-reference in the header. This has the big advantadge that the number of requests to the server is lowered, less requests means higher responsiveness and faster serving pages.
If you have any references to js-files or css-files in the body-part of your document, there are not merged, but they do get compressed.
Secondly, and standard aspx-pages are being compressed also, meaning another saving in the bandwidth and loading time.
What I like about it also is that it works perfectly on the umbraco-backend as well. For example: If you load the UI-startpage, uncompressed it is approx 500kb in size. After compression, it's only around 225kb! More than 50% saving.

Archived files

Documentation

Source code

Package owner

Peter Dijksterhuis

Peter Dijksterhuis

Peter has 1722 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Peter Dijksterhuis
  • Created: 24/06/2009
  • Current version 1.7
  • License MIT
  • Downloads on Our: 1.4K

External resources