Performance is always a huge problem for any Drupal site. Every module you add to an install kills it just a little bit.
Drigg's got a lot of modules.
One of the most useful performance helpers is the javascript aggregator module: http://drupal.org/project/javascript_aggregator
It rolls all your javascript into a single call in the header, which speeds things up a good bit.
If you activate it while running Drigg however, your voting forms disappear and don't work.
Luckily the js aggregator allows for exemptions. Below I've listed the exemptions i had to add to get drigg working again:
/misc/jquery.js
/sites/all/modules/jquery_update/compat.js
/sites/all/modules/extra_voting_forms/extra_voting_forms.js
/sites/all/modules/drigg/drigg_rl/drigg_rl.js
/sites/all/modules/drigg/drigg/drigg.js
Question: is there some way we can allow these to be aggregated? This would boost performance.
Question: are there 1-2 of these that in theory shouldn't be a problem to aggregate? I know for a fact that jquery can't be aggregated. I did a little testing with the others, but I didn't build the thing and am not the expert on what other ramifications there could be to aggregating drigg_rl.js or drigg.js
Comments
Comment #1
mercmobily commentedHi,
I have no idea, I don't do Javascript.
Kevin, do you know the answer?
I don't consider this a bug, but a support request...
Merc.
Comment #2
ajayg commentedjavascript aggregator is available in core D6 (in D5 it is a contributed module). So even though this is a feature request in D5 it will would be a bug for D6 version of drigg. So it may be worth looking into.
Comment #3
mercmobily commentedHi,
I am not 1000% convinced, but will get Kevin or Cedric to look into it!
Merc.
Comment #4
Lincoln Hawks commentedComment #5
bflora commentedYeah, I think aggregating javascript is crucial to drupal performance. If we can get drigg's js to aggregate, then good!
Comment #6
stuartduff commentedWe are curently utilizing the JS aggregator module with drigg at WPscoop and have experienced no problems whatsoever thus far, just to let you guys know.
Comment #7
mercmobily commentedHi,
If it can't be reproduced, it can't be fixed :-/
bflora: can you please confirm 10000000000000% that it's is indeed Drigg that has a problem?
Does this show up with a drigg_distr.tgz installation of Drigg?
Bye,
Merc.
Comment #8
stuartduff commentedHi guys,
@Merc the JS aggregator works fine with 5.10 of drupal and drigg v1.35 and v1.36, we have run that combination of software for around six weeks with no problem in the votes.
An update to take note of however is that when we upgraded to v 5.11 of Drupal today the JS aggregator stopped working for voting functions ;)
Comment #9
stuartduff commentedDOH!!!!!
Ignore that last comment Merc i forgot that updating would overwrite the custom jquery.js file in the /misc folder that is required for Drigg to function with voting.
JS aggregator working with Drupal v5.11 and drigg v1.36 http://wpscoop.com/ ;).
I would consider this issue closed Merc as there is no problem with drigg, extra voting forms and JS aggregator as you can see.
We aggregate jQuery without a problem so this information would seem inaccurate also.
Stuart
Comment #10
mercmobily commentedHi,
OK, closing this issue -- bflora, please reopen this with a detailed list of how to reproduce it starting from drigg-distr.tgz if you still have problems!
Merc.
Comment #11
bflora commentedI've updated my Drigg to the latest official release.....I'll see if I can test it out sometime soon. I've got even bigger javascript problems at the moment. Sigh.
Comment #12
mercmobily commentedHi,
I am sorry to hear that bflora. Ugh :-(
Please let us know if there's anything we can do to help.
Specifically, this would _really_ help:
"please reopen this with a detailed list of how to reproduce it starting from drigg-distr.tgz if you still have problems!"
The "starting from drigg-distr.tgz" is the key part :D
Merc.
Comment #13
RGoffin-1 commentedI just found this page after breaking my admin page with Drigg and it's other modules. After reading about the potential problems I disabled the module 'aggregator' and I still do not have an admin page. Should I try unzipping Drigg in the modules folder? Any advice is appreciated I want to use Drigg for video and am lost in the installation. What other modules could be causing this conflict?
Comment #14
mercmobily commentedHi,
The aggregator module has nothing to do with the Javascript aggregator.
I don't think this is the right spot to discuss this issue, which seems to be completely unrelated.
And... I am not sure how to answer your question. Have you installed Drigg? Wwhy are you taking about unzipping it then?
Sorry, this post is just not clear enough for me to do anything about it. Please do not reopen,.
Merc.
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
drupalina commentedI'm reopening this issue because it definitely exists in 6.x -- the moment that you enable the option "Optimize and Minify JavaScript files" in Performance, the buttons of the Extra Voting Forms turn into bullet points.
Has anyone found a solution?
Comment #17
ajayg commentedYou still have hopes this will get resolved? the maintainer has long gone (more than a year ago) and no one has taken over drigg or any related modules. It is high time to find alternative if you haven't already.
the drigg-code.org sites seems to be abandoned and no longer exists.
Comment #18
avpadernoI am closing this issue, as Drupal 6 is no longer supported.