[horde] Google Closure Compiler
Arjen de Korte
arjen+horde at de-korte.org
Mon Feb 22 18:52:34 UTC 2016
Citeren Jan Schneider <jan at horde.org>:
> Zitat von Arjen de Korte <arjen+horde at de-korte.org>:
>
>> I'm trying to use the Google Closure Compiler for Javascript
>> Caching. This doesn't seem to work, as in the /static directories
>> *.js files show up with the following content:
>>
>> //# sourceMappingURL=/horde/static/bf3d64e5bc07fd51.js.map
>> // @source: https://example.org/horde/js/hordecore.js
>> // @source: https://example.org/horde/js/keynavlist.js
>> // @source: https://example.org/horde/js/scriptaculous/effects.js
>> // @source: https://example.org/horde/js/autocomplete.js
>> // @source: https://example.org/horde/js/liquidmetal.js
>> // @source: https://example.org/horde/js/prettyautocomplete.js
>> // @source: https://example.org/horde/js/imple.js
>> // @source: https://example.org/horde/js/map/map.js
>> // @source: https://example.org/horde/js/popup.js
>> // @source: https://example.org/horde/js/date/nl-NL.js
>> // @source: https://example.org/horde/js/date/date.js
>> // @source: https://example.org/horde/js/topbar.js
>> // @source: https://example.org/horde/kronolith/js/dragdrop2.js
>> // @source: https://example.org/horde/js/redbox.js
>> // @source: https://example.org/horde/js/tooltips.js
>> // @source: https://example.org/horde/js/colorpicker.js
>> // @source: https://example.org/horde/kronolith/js/kronolith.js
>> // @source: https://example.org/horde/js/calendar.js
>> // @source: https://example.org/horde/js/sidebar.js
>> // @source: https://example.org/horde/js/growler.js
>> // @source: https://example.org/horde/js/scriptaculous/sound.js
>> // @source: https://example.org/horde/js/form_ghost.js
>>
>> This doesn't look right. Relevant versions of Java & PHP
>>
>> # java -version
>> openjdk version "1.8.0_72"
>> OpenJDK Runtime Environment (build 1.8.0_72-b15)
>> OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)
>>
>> # php --version
>> PHP 5.5.14 (cli)
>> Copyright (c) 1997-2014 The PHP Group
>> Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
>> with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend
>> Technologies
>>
>> What am I missing here?
>
> http://github.com/horde/horde/commit/654cd04d433dada267386fd06c1a254621a74ee2
The contents of the *.js files look a bit better. However, the
compressed JavaScript doesn't work anymore (at least not for the login
screen). Not even with --compilation_level WHITESPACE_ONLY. It doesn't
look like a caching issue, I tried with Chrome, Firefox and Konquerer
and neither of them were able to use it.
More information about the horde
mailing list