[Pkg-javascript-devel] documentation about distributing minified versions of files

David Prévot david at tilapin.org
Thu May 9 19:44:00 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Le 09/05/2013 15:09, Daniel Kahn Gillmor a écrit :
> On 05/09/2013 02:11 PM, David Prévot wrote:

>> Please note that some projects (including ownCloud, packaged on Debian)
>> allow the web administrator to switch (temporarily) in debug mode,
>> where, among other things, the non-minified JavaScript are used instead
>> of the usual minified ones. […]

> interesting, thanks for this data point.  does this switch work by
> taking advantage of the "min.js" suffix, or via some other mechanism?

Via the .min.js suffix if I remember correctly (or other specific
suffixes, since not all minified JavaScript in ownCloud use the .min.js
suffix).

> does it work for all js (including libraries), or just for the
> "owncloud-native" js segments?

All JavaScript if I remember correctly (especially since upstream
embedded convenient copies of external libraries, usually replaced by
symlinks in the Debian package). That reminds me we may have to add back
the non-minified (symlinks to) JavaScript inside the ownCloud package
(for this debug feature), so I’m going to check it again pretty soon and
will be back here with more accurate data if I notice I didn’t remember
correctly.

> […] Should we expect each framework to implement
> it separately?

Please note that, in the ownCloud case, the non-minified JavaScript is
not the only feature of the debug mode, of course (and thus can’t be
addressed in a JavaScript-only generic way, and maybe not even in a
generic way at all).

Regards

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRi/x/AAoJELgqIXr9/gnykOoP/j44V8XlJPUTF7E0xGtLrns9
xoJnTxxJinHEt7f2s+j1kQAMdjq3vZ5aqdRJWBPotM86TXIZ0p4Am2XHGrWnYTTg
9FyALNvWUH1hgCiUv9pr7iC8T1alz8BIG7uMoJc+avgfmLp8XsuzChCLvXTNTVhX
ObyGhFoBLHgj/qVLZbNaCqvKskxQxUdSVa49fevfw7mDP8FhKdLesZIvxEOZmVSv
z+ruSW5ft2REQruWb63loT4o8bnCBOGo7vpxE2VUF23C+elnJfxYVtAzAA8P73Mx
WBZhd93mS1I6OXltYTrGq2D2fmyQp3oAJ5nsxlNHq2OCLMRBjyJFzpZxIR81yNKz
Fv6M4cNVH23t7nm4Y52nu89+TKYCPMq4DzSwc/peJNkZxGCwFXeX7b1nZB38CCwJ
+Dg1bmo7wJ+n2ffReco29c2sTeIzWaQhtOA/5nsPRO46fginGlPN9NUWPbVJAXIY
EJIW8lQRnhExDJ6ytUwAXQWZEtYujDrdjMyecTaJkzixCSl1nofq5IYkxjs3psYP
JSwMApSl952mRRS9y1a9DPbdNo+LR0YNII3wEFY4g1Mcurlr87tgox+jBlOU56ZQ
C/EzvWypCc+T5a4kuXjBjIZP1zYzymM/r9qQkV6MRJE3aKlDCtpMZ0IBrcKTY0bp
7G2O4SoHONbZiCDkJbOz
=6d3B
-----END PGP SIGNATURE-----



More information about the Pkg-javascript-devel mailing list