Just another minifier packer alternative ???
You can write directly on JS area or in CSS one or upload one or more file, choosing which one should be executed before others.
In this case your server will not need to do anything, just serve correct file verifying its sha1 summary to choose it browser need to download them or use them from its cache.
How many times You write CSS dedicated only for your client library?
Think about document.body, var li, getElementsByTagName("div"), getElementById("some-id"), setStyle("width") and so on.
My personal compressor, inspired by fantastic Dean Edwards packer idea, creates a single list of keywords used inside both CSS and JavScript sources.
In few words, every word will be replaced inside source reducing its size from 30% to 60% and if browser is compatible with gzip or deflate, final size should be even less than 20% of original one.
Do You want to know more about MyMin ?
Do You want to know more about MyMin Compressor ?
MyMin Compressor works with every kind of source. This mean that You don't need to respect any rule when You write your JS or CSS code just because it doesn't modify original output and result will be exactly the same.
Its also based on fastest decompression algorithm I could thought and sources parsed with this Compressor will be available quickly even using old computers.
Its decompression procedure is compatible with every recent browser (IE 5.5 or greater, FireFox 1 or greater, Safari 2 or greater, KDE 3 or greater, Opera 7 or greater, NetScape 6 or greater, others too!) and should be compatible with old browsers too just adding a little function like this one before decompression (required only with IE5 or lower).
Do You need something else to choose packed.it ?
I hope there's no reason to don't use packed.it service:
- it's innovative
- it's free
- it's compatible with W3 validator and WatchFire too (WAI-AAA friendly)
Ok, I know, It's beta ... but it's just working so please tell me some question to create a useful F.A.Q. site section or tell me if something doesn't work as expected.
Regards, and have fun with Web 2.0 technologies !
P.S. I'm working to include a C# and Python variant to packed.it.php file (gzipped and deflated files just works with every language).
If You want to do it for me before I'll do that, please tell me and I'll put your credits in dedicated page, thank You :-)
Example using Ext (all both for JS and CSS)
ext-all.js + ex-all.css ... original size: 559.90 Kb
after packed.it conversion: one file, total size: 129.81 Kb :-)
Example using jQuery + jQuery UI + every CSS theme
From 260 Kb to 40Kb , about 15% :-)
Example using bytefx
From 18 Kb to 1.5 Kb , about 8% and Yessss, less than 2kb! :-)
Please note that packed.it is beta and not totally debugged with different browsers.
If You can read a text over a background #DDD body, Your browser is compatible with packed.it produced code.