JavaScript and CSS minification

This is an implementation of a new tag for the OpenCms taglib that can automatically condense JavaScript and CSS code. The tag is used by enclosing a block of CSS of JavaScript with it, for example:

<cms:minify type="js">
function myFunc() {
  myVar = 123;
  alert( myVar );
}
</cms:jsminify>

The result in this case would be: "function myFunc(){a=123;alert(a)}"

The minification is done through the excellent Yahoo YUI compressor (http://developer.yahoo.com/yui/compressor/) which is also used by the jQuery project and which is, for example, able to condense variable names.

Modul Version: 1.0
Zur Verfügung gestellt von: Christian Steinert
Lizenz: LGPL
Zum Downloaden hier Klicken (820 kb)

Download von OpenCms

  • OpenCms 9.0.1 ist fertig! Diese Version korrigiert einige Probleme von OpenCms 9 und bringt verschiedene funktionale Verbesserungen. Jetzt OpenCms 9.0.1 kostenlos herunterladen!
    Größe:121421KB

    Zum Download hier klicken

Update von OpenCms

  • Aktualisieren Sie Ihre OpenCms Installation auf die aktuelle Version 9.0.1 mit dem einfach zu benutzenden Upgrade-Wizard.
    Größe:97654KB

    Zum Download hier klicken

Take the guided tour

OpenCms Days 2014

  • OpenCms Days 2014 Conference and Expo

    OpenCms Days 2014 will take place  Monday, November 3 to Tuesday, November 4 in Cologne, Germany.

    Highlight of the international user conference and expo will be the release of  OpenCms 9.5. OpenCms Days will be the perfect opportunity to exchange experiences around OpenCms with high profile participants and speakers from all over the world.

    Visit this 2 day conference and expo to meet and mingle with leading OpenCms experts and other OpenCms users.

    OpenCms Days 2014 is targeted towards an international audience. The language spoken at the event and used for all presentations is English.

    More information...