All Projects → galan → packtag

galan / packtag

Licence: Apache-2.0 License
A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to packtag

Yii2 Minify View
Yii2 View component with minification css & js
Stars: ✭ 186 (+745.45%)
Mutual labels:  minify, minification
Smidge
A lightweight runtime CSS/JavaScript file minification, combination, compression & management library for ASP.Net Core
Stars: ✭ 267 (+1113.64%)
Mutual labels:  compression, minification
Webmarkupmin
The Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
Stars: ✭ 312 (+1318.18%)
Mutual labels:  minify, minification
imagemin-power-cli
Optimize (compress) images with power using imagemin 💪
Stars: ✭ 13 (-40.91%)
Mutual labels:  minify, minification
Minify
CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
Stars: ✭ 1,710 (+7672.73%)
Mutual labels:  compression, minify
Compress Images
Minify size your images. Image compression with extension: jpg/jpeg, svg, png, gif. NodeJs
Stars: ✭ 331 (+1404.55%)
Mutual labels:  compression, minify
Image Shrinker
App for macOS. Minify your images and graphics with just one drop. Autorenamed in the same place where it comes from. Immediately!
Stars: ✭ 217 (+886.36%)
Mutual labels:  minify, minification
MinifyAllCli
📦 A lightweight, simple and easy npm tool to 𝗺𝗶𝗻𝗶𝗳𝘆 JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as 𝑪𝑳𝑰 tool or 𝒊𝒎𝒑𝒐𝒓𝒕𝒂𝒃𝒍𝒆 in TS/JS as a 𝑴𝑶𝑫𝑼𝑳𝑬 🥰
Stars: ✭ 21 (-4.55%)
Mutual labels:  minify, minification
Html Compress Twig
Twig extension for compressing HTML and inline CSS/JS using WyriHaximus/HtmlCompress
Stars: ✭ 72 (+227.27%)
Mutual labels:  compression, minify
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (+3054.55%)
Mutual labels:  compression, minify
MinifyAll
A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗶𝗻𝗶𝗳𝗶𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 𝘾𝙤𝙢𝙥𝙧𝙚𝙨𝙨 and 𝙜𝙯𝙞𝙥 files and folders 📦 Reduce your bundle and file sizes with lightning speed ⚡
Stars: ✭ 54 (+145.45%)
Mutual labels:  minify, minification
postcss-clean
PostCss plugin to minify your CSS with clean-css
Stars: ✭ 41 (+86.36%)
Mutual labels:  minify, minification
acid-store
A library for secure, deduplicated, transactional, and verifiable data storage
Stars: ✭ 48 (+118.18%)
Mutual labels:  compression
website
Documentation for the SWC project.
Stars: ✭ 53 (+140.91%)
Mutual labels:  minification
OpenBook-E-Commerce
An e-commerce progressive web application, built with mern stack. It has features like product buy, order management by admin, payment gateway, cart, checkout and lot more.
Stars: ✭ 53 (+140.91%)
Mutual labels:  minify
QmapCompression
Official implementation of "Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform", ICCV 2021
Stars: ✭ 27 (+22.73%)
Mutual labels:  compression
lepcc
Point Cloud Compression used in i3s Scene Layer Format
Stars: ✭ 22 (+0%)
Mutual labels:  compression
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (+886.36%)
Mutual labels:  compression
ngx-image-compress
Angular library for uploading and compressing images
Stars: ✭ 65 (+195.45%)
Mutual labels:  compression
sanic compress
An extension which allows you to easily compress your Sanic responses with gzip.
Stars: ✭ 26 (+18.18%)
Mutual labels:  compression

Build Status Maven Central License

pack:tag

A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).

Usage

To use the taglib in a JSP, you have to declare it first:

<%@ taglib uri="https://github.com/d8bitr/packtag" prefix="pack" %>

(You can still use the old uri 'http://packtag.sf.net' for backward compatibility)

Now you can easily pack JavaScript by using the following tag:

<pack:script src="https://github.com/js/myJavaScriptFile.js"/>

Accordingly for Cascading Style Sheets:

<pack:style src="https://github.com/css/myCascadingStyleSheet.css"/>

You can enable and disable each tag individually by setting the attribute enabled to false, e.g.:

<pack:script src="https://github.com/js/myJavaScriptFile.js" enabled="false"/>

You can combine resources simply by listing them up:

<pack:script>
  <src>/js/myJavaScriptFile.js</src>
  <src>/js/mySecondJavaScriptFile.js</src>
</pack:script>

That's it.

If you want to deepen your knowledge and learn about advanced techniques, I suggest reading "pack:tag - a packed guide to website performance optimization".

Integration

  1. Add the maven dependency to your project:

     <dependency>
         <groupId>de.galan.packtag</groupId>
         <artifactId>packtag-core</artifactId>
         <version>3.13.2</version>
     </dependency>
    
  2. Copy the <servlet> and <servlet-mapping> from the web.xml into your /WEB-INF/web.xml

Note

pack:tag is still supported, and still encouraged to be used if it makes sense for your project. But, no further development beyond bug fixes is expected. pack:tag is over 8 years old, and has been stable since then. Thank you to the community for your support of this project over the last years.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].