Closed (fixed)
Project:
Account Types
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2008 at 11:55 UTC
Updated:
29 Mar 2008 at 19:43 UTC
Great Module, Just what I was looking for.
I am noticing performance issues though.
The admin/user/user/create page is very slow to load.
Also, the radio button for account types on this page causes Firefox to freeze.
I have two 'account types' basic [as provided] and annual.
When I select 'annual' in this radio button option group, the whole page freezes.
Eventually the allowed roles are then made available to select.
I'm guessing this is some sort of javascript issue, but I'm not sure.
Regards
Alan
Update: I'm running the Jquery update module, and its related to this
I'll try to get to the bottom of this.
Comments
Comment #1
alanburke commentedOk I don't think its related to that Jquery update module
[I removed it, went back to standard Drupal 5 jquery, and there were still issues]
It doesn't even seem to be javascript related.
The browser [latest Firefox] juts hangs for an age, on the last HTTP request [that's originally why I thought it was javascript].
Continuing to investigate.
Maybe its a form builder thing?
Later
Alan
Comment #2
alanburke commentedOk its is Javascript related.
Disable Javascript, and it flies along.
Its the module account types, not account expiry [which has accounttypes as a prerequisite]
Regards
Alan
Comment #3
alanburke commentedComment #4
rconstantine commentedHmm. Do you get different behavior on the user edit page (ex. user/22/edit)? It should behave the same as the create page I think. Anyway, in my installations, there is maybe a half second delay with 20-30 roles defined and 5-6 accounttypes. Have you tried accounttypes without account_expiry? Both my create and edit pages are fine.
Yes the delay is JavaScript. However, the functions have all been cleverly slimmed as small as they will go using regular JavaScript. I'm sure some advantage could be had changing it to JQuery, but I haven't done it yet. However, the time it is taking you seems inordinately long.
Until we can pinpoint a bug, I'm guessing account_expiry may be doing something here, so I'm changing this to support for now.
Comment #5
alanburke commentedThanks for the response,
I've tried it without account_expiry, and without node Profile [which is also installed].
It's definitely the javascript.
I only have two account types, and 4 roles, so i'm a bit confused as to why it's so slow.
I'll try it an a few different browsers, and see what the outcome is.
Thanks and Regards
Alan
Comment #6
rconstantine commentedTake a look at the page source since all of the JavaScript should be there. Maybe paste it here so I can make sure it's OK.
Comment #7
alanburke commentedHi rconstantine,
Thanks for looking into this.
I did futher testing in IE, and Opera, and no issues there.
It is only in Firefox 2.0.0.8
Now, I should be honest and admit that I do have a good few plugins installed, including firebug.
I occassionally have issues with this browser [slowdowns], but nothing quite this bad.
Here is the js code generated in any case.
If it looks alright to you, mark this as fixed.
Regards
Alan
Comment #8
alanburke commentedI did a further check, with Firefox in Safe mode, and all was well.
It must be some plug-in I have installed [perhaps Firebug]
Regards
Alan
Comment #9
rconstantine commentedI have Firebug installed as well (as any good developer would) and still, mine updates in a fraction of a second.
I also have about a dozen other addons installed and working. However, try disabling (not uninstalling) yours one at a time and see if you get any improvement. Also, update Firefox - it's at 2.0.0.12 now I believe.
As you can see by the code generated, it's pretty small and doesn't try to do anything crazy. There aren't loops that run more than four times (in your case), so it really should be fast for you.
Comment #10
rconstantine commentedIf I don't hear more, I'll just have to close this. Marking fixed so it will timeout in two weeks.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.