Autoblog Most Popular: Ford Mustang (73 posts), Chrysler 300C (45), Corvette C6 (39), Mini Cooper (37), Toyota Prius (37).

JavaScripte

Crunchy Scripts Followup

Last week I wrote about the JavaScript Crunchinator, a tool for converting your well-indented, good-looking scripts into a less readable but more compact form. Thanks to some reader comments on that post, I have found out about a few similar tools:

  • Angus points out his own tool, CodeTrimmer, which also crunches scripts and provides some useful options, like whether to remove comments.
  • John and Ken mentioned Packer by Dean Edwards, a similar tool.
  • Jeremy recommends Bookmarklet Builder, a specialized cruncher for bookmarklets that lets you work with a readable version of your code and produce a one-line compressed script as output.
  • Jeremy also mentioned PrettyPrinter.de, the opposite of these tools. If you’re faced with a crunchinated script, this tool adds appropriate whitespace and newlines to make it more readable. It works with JavaScript, PHP, Java, C, C++, Perl, and CSS.

Last but not least, Marek has a good point in his comment: if you enable gzip compression on your web server, most browsers will be sent a compressed version anyway, which makes the whole point of squashing scripts to save bandwidth moot. You may want to consider using this at the server level rather than messing with your scripts if that’s an option.

 

Permalink | Email this | Comments [0]


Recent Entries

 » Very Dynamic Web Interfaces (2/11/2005)
 » Friday Fun: A taste for the Web (2/11/2005)
 » More on Google Maps (2/10/2005)
 » SXSW Registration Deadline this Friday (2/10/2005)
 » Crunchy Scripts Followup (2/9/2005)


(Add your comments)

Reader Comments

Be the first person to comment on this entry.

Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. Email addresses are never displayed, but they are required to confirm your comments. To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.







Do you want us to remember your personal information for next time?
   


   

Advertisement 

SPONSORED TEXT LINKS

Get your own text link here.

RECENT COMMENTS


MOST COMMENTED ON
(past 60 days)


WEBLOGS, INC. NETWORK

Consumer
Autoblog
Blogging Baby
Engadget
Gadling
hack a day
Joystiq
Luxist
TUAW (Apple)
Technology
Apple (Unofficial)
CSS
Digital Photography
Flash Insider
Google (Unofficial)
JavaScript
Microsoft (Unofficial)
Office
Open Source
Peer-to-Peer
Photoshop (Unofficial)
RSS
SAS (Unofficial)
Search Engine Marketing
Social Software
Spam
Tablet PCs
VoIP
Yahoo (Unofficial)
Wireless
Bluetooth
Engadget: Cellphones
Engadget: GPS
RFID
Ultra Wideband
WiFi
The WiMAX Weblog
Engadget: Wireless
Wireless Dev
Wireless
Video Games
Blogging E3
Engadget: Gaming
Joystiq
Playstation 3
Video Games
Xbox 2
Media & Entertainment
Design
Digital Music
Documentary Film
Droxy (Digital Radio)
Independent Film
Magazine Design
Nanopublishing
Business
The Mortgages Weblog
Outsourcing
SCM Wire (supply chain)
Life Sciences
The Cancer Blog
The Diabetes Blog
Medical Informatics
Telemedicine
Personal
Brian Alvey
Jason Calacanis
Blog Maverick
Gordon Gould
Judith Meskill
Events
Blogging E3
Blogging ETech
Future of Music
Blogging Milken
Blogging Sundance
Blogging Web 2.0
Other
Weblogs, Inc.


The JavaScripte Blog is part of the Weblogs, Inc. Network — a network of more than 70 blogs.
Here are some recent headlines from our other blogs:

Autoblog
India to get F1 race in three years
XM cheaper chip makes everything compatible
Audi Q7 gets official launch site
Forgotten X-Type Sportwagon
More info on the Opel Zafira

Luxist (fine living)
Hot Water
Estate of the Week: Woodlands Lodge
Blue Star Jet Cards
Luxist Field Trip: Turquoise Set at David Webb
Ferrari da Varese 2004 Limited Edition

hack a day
hackaday links
hacking the roku soundbridge
hackaday links
basic stamp controlled kegerator
hackaday links
Joystiq (video games)
Ion Storm: A recollection
Gamespot has the rumors
Ballmer loves the next Xbox
PacMan Must Die! lets you stand behind your opponent
Use your GBA to tune your car
Blogging Baby
Online baby registries may restrict access to keep stalkers away
Valentine’s Day books for kids
Fox signs ‘Who’s Your Mama’ film deal
UK group to study rare pregnancy disorders
Babies just as smart as we thought
Gadling (travel)
Travel Writers Lament
Give a Little: The Alex Lowe Foundation
Jackartass
Photo of the Day: (2/12/05)
Gotboard?
Peer-to-Peer
Red Swoosh trying to hire BT developers
More on LokiTorrent
Easy Bit Torrent Creation
LokiTorrent Crumbles
Morpheus adds BitTorrent support
Wireless
Bluetooth Goes Luxury
Say Goodbye to Dorm Landlines
McAfee Launches Wi-Fi Security Scanner
Hasbro’s New Device Targets the “Tween” Market
FCC Task Force Calls for Less Regulation in Wireless Broadband Market
Indie Film
AVIATOR Beats Brits At Their Own Game
Jenny Gets Wild With ‘Dirty’
Post-Premiere Punditry on INSIDE DEEP THROAT
Bigfoot Wraps Grace
In Theaters Today: FEMININE, BRIDE, THROAT
Flash Insider
AS2 Primer
Rollin Back
Masked flash
Flash Needs
Portrait Contest
TUAW (Apple)
Freeware February: WinSwitch
Five new Apple retail stores on the way
MacCentral Reviews 17 inch Powerbook
FreeiPods.com not Truste-worthy?
RealNetworks snags impressive three of the top 10 business blunders of 2004

Engadget
Is the Sony Ericsson S710a going to be crazy expensive?
HP + Gateway?
QinetiQ announces smallest GPS tracking unit
First DIY Nintendo DS game
W22H comes in red, makes awesome noise

If you want to advertise on the largest blog network in the world,
email Shawn Gold or call him at 310-828-8284.