On Tue, Oct 7, 2008 at 5:37 PM, Aryeh Gregor Simetrical+wikilist@gmail.com wrote:
On Tue, Oct 7, 2008 at 11:28 AM, Thomas Dalton thomas.dalton@gmail.com wrote:
I don't see the problem. Unless the error is intermittent, you'll get the error with the minified version with a useless line number and then you'll add minify=0 to the url and will get the error with the unminified version which will give the line number for the unminified version.
I was assuming that minify=0 would be a parameter for the combining script, not the whole page, but of course the latter could be done too. It seems prudent to make it optional anyway, though.
I am a Internet newbie, so maybe I don't understand the problem.
Desktop programmers often distribute his applications as binary compiled form version of his SRC files. I don't see what is the problem to distribute a application webpage has a binary file.. or a ofuscated file-optimized file. If having a separate (keyword here is: separate) download for the SRC files. Has programmers of Desktop applications have a separate folder labeled "SRC" with the SRC files of any binary distribution program.
Two folders: src/<all the SRC files goes here> bin/alljs_20081002.js bin/.htwhateverconfig
You can have a make process that recreate that alljs_<build date here>.js from the SRC files. The .htwhateverconfig make Apache send the right expiration http headers, so browsers are forced to cache a file called alljs_20081002.js forever (or til 2012).
I know you can still have poeple that may need the un-ofuscated original (not compiled) src. But he!.. developping sould work on a beta server or something, not on production. People geek enough to need the original src files, could google about it, and download the full src/ folder or something alike.
-- ℱin del ℳensaje.