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

mercmobily’s picture

Category: bug » support

Hi,

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.

ajayg’s picture

javascript 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.

mercmobily’s picture

Hi,

I am not 1000% convinced, but will get Kevin or Cedric to look into it!

Merc.

Lincoln Hawks’s picture

bflora’s picture

Yeah, I think aggregating javascript is crucial to drupal performance. If we can get drigg's js to aggregate, then good!

stuartduff’s picture

We 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.

mercmobily’s picture

Hi,

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.

stuartduff’s picture

Hi 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 ;)

stuartduff’s picture

DOH!!!!!

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.

I know for a fact that jquery can't be aggregated.

We aggregate jQuery without a problem so this information would seem inaccurate also.

Stuart

mercmobily’s picture

Status: Active » Fixed

Hi,

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.

bflora’s picture

I'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.

mercmobily’s picture

Hi,

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.

RGoffin-1’s picture

Version: 5.x-2.x-dev » 5.x-1.36
Component: Code » User interface
Assigned: Unassigned » RGoffin-1
Category: support » bug
Status: Fixed » Active

I 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?

mercmobily’s picture

Status: Active » Fixed

Hi,

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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

drupalina’s picture

Version: 5.x-1.36 » 6.x-1.x-dev
Status: Closed (fixed) » Active

I'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?

ajayg’s picture

You 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.

avpaderno’s picture

Assigned: RGoffin-1 » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as Drupal 6 is no longer supported.