Module: Compress Javascript using Packer
Posted by Maurice Makaay
|
Module: Compress Javascript using Packer March 13, 2009 08:20PM |
Admin Registered: 22 years ago Posts: 8,532 |
This module compresses the Phorum Javascript code using Dean Edwards' JavaScript Packer algorithm. This reduces bandwidth usage and speeds up downloading of the JavaScript code.
For more information see:
Dean Edwards' website - http://dean.edwards.name/packer/
PHP implementation - http://dean.edwards.name/packer/
This module needs Phorum 5.2.11 or later to function. This is mainly because a few compabibility issues had to be fixed in the JavaScript code. If you want to try the module on an earlier version (but no earlier than 5.2.8 because of hook requirements), then apply the changes from changeset 3946 manullly to your Phorum install and delete the "require_version" line from mods/compress_packer/info.txt file.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
For more information see:
Dean Edwards' website - http://dean.edwards.name/packer/
PHP implementation - http://dean.edwards.name/packer/
This module needs Phorum 5.2.11 or later to function. This is mainly because a few compabibility issues had to be fixed in the JavaScript code. If you want to try the module on an earlier version (but no earlier than 5.2.8 because of hook requirements), then apply the changes from changeset 3946 manullly to your Phorum install and delete the "require_version" line from mods/compress_packer/info.txt file.
Changelog: ---------- 2008-07-23 v1.0.0 - Initial release.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Compress Javascript using Packer May 20, 2010 06:01AM |
Registered: 18 years ago Posts: 6 |
|
Re: Module: Compress Javascript using Packer May 20, 2010 06:22AM |
Registered: 18 years ago Posts: 6 |
|
Re: Module: Compress Javascript using Packer May 20, 2010 07:45AM |
Admin Registered: 22 years ago Posts: 8,532 |
There are probably a lot more issues when packing the javascript code. In 5.3-dev, we are writing a whole new javascript library for Phorum. In that one, we check the code using jslint, which will take care of removing all possible issues for packing. So for 5.3, javascript packing will be better. For 5.2 it will either work or not I'm afraid. It's too much lost time for me to go over all the javascript issues in that version.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Compress Javascript using Packer May 21, 2010 01:47PM |
Registered: 17 years ago Posts: 115 |
Both bug reports are due to the same bug, I think. At least fixing the malformed line in form_objects.php.js makes everything work for me. FWIW, since I was the contributor of form_objects.php.js, I posted a patch to it here: form_objects.php.js patch.
|
Re: Module: Compress Javascript using Packer May 23, 2010 04:01PM |
Admin Registered: 22 years ago Posts: 8,532 |
I added the code to the 5.2 tree.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Compress Javascript using Packer February 02, 2011 09:22AM |
Registered: 15 years ago Posts: 10 |
Do you know that the Editor Tools mod stops working when this JavaScript packer mod is enabled? I couldn't figure out why my toolbar wasn't showing up, then when I disabled this mod, the toolbar started working again.
I'm going to try the Yahoo version now, to see if that works better. Thanks!
I'm going to try the Yahoo version now, to see if that works better. Thanks!
|
Re: Module: Compress Javascript using Packer February 02, 2011 09:30AM |
Admin Registered: 22 years ago Posts: 8,532 |
Yeah, we know, since that was reported in this thread previously. Here's my comment to the bug report.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Compress Javascript using Packer February 02, 2011 09:31AM |
Registered: 15 years ago Posts: 10 |
|
Re: Module: Compress Javascript using Packer February 02, 2011 10:14AM |
Admin Registered: 22 years ago Posts: 8,532 |
No, that module is not enabled here. I do see the editor tools toolbar in my browser. What exact browser version are you using?
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.
