pack:tag

What is pack:tag

pack:tag is a JSP-Taglib that minifies, compresses and combines resources (like JavaScript and CSS) and caches them in memory or in a generated file. It works transparent to the user/developer and the compressing-algorithms are pluggable.

pack:tag - one minute quick start tutorial
pack:tag - a packed guide to website performance optimization.pdf
download pack:tag

Amazon Wishlist

Features

pack:tag offers many advantages to your development and deployment:

  • Minification of JavaScript and Cascading Style Sheets
  • Caching to memory (default) or file system
  • The minified content is delivered gzipped (memory)
  • Combination of resources
  • Combination of subdirectories (wildcard syntax)
  • External resources can be packed and then served locally
  • Cached resources are updated automatically on change
  • Minification and compression adjustable on single resources
  • Relative path support (memory)
  • Charset support
  • Strict XHTML conformity
  • Apache Standard taglib support for evaluations
  • Advanced caching techniques (etag configuration, 304 status header, expire header, ..)
  • No resource will be written out twice
  • Cloaking of resources
  • Caching Provider are pluggable (Ehcache Provider is included)

Benefits you get when compressing static resources with pack:tag:

  • Reduced bandwidth
  • Reduced number of requests
  • Faster loading time for the client
  • Browser caching side-effects of JavaScript files solved
  • Obfuscation of the content (depending on the strategy, at least uglyfying) and the resource names, cloaking is also possible

Lets take a look at the big picture:

And this is what happens to a resource (here JavaScript compressed with JSMin):

Requirements

  • A Java based Webcontainer (e.g. Tomcat or Resin)
  • JDK >= 1.4

Feedback

If you have suggestions, found bugs or want to give feedback in general, please go to the project page, hosted on sourceforge, and leave a message:
http://www.sourceforge.net/projects/packtag

About

Developed by Daniel Galán y Martins in 2007-2008, Licensed under LGPL 2.1

SourceForge.net Logo