JS files are normally quite nicely formatted. however this can make them slow to load. Indeed,
TinyMCE depends on js being stripped for load.
The idea is to ship two versions of the JS in the release package. The first, named XYZ_src.js, is the nicely formatted source version you use during development.
The second, XYZ.js is automatically generated by the
perl build.pl build
target (automatically run during release builds).
The stripping can be done using the
CPAN:JavaScript::Squish module
This is a requirement for packaging
TinyMCE after patching. it is also potentially very useful for anyone else who uses JS.
--
TWiki:Main/CrawfordCurrie - 11 Sep 2007
At some time I have written something about naming convention for compressed files:
TWiki:Codev/JavaScriptCodingStandards#Packaging_and_delivery
--
TWiki:Main.ArthurClemens - 11 Sep 2007
The naming convention comes from TinyMCE - i guess we can support more than one, though.
It also compresses .css using the same naming scheme (_srcs.css -> .css)
CC