Announcement

  •  » Beta testing
  •  » [2.0.0RC3] slowliness on resizable select boxes with many categories

#1 2008-10-25 13:28:12

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13082

[2.0.0RC3] slowliness on resizable select boxes with many categories

I have 584 categories and on many pages of the administration, we display one or more select boxes with all categories. For example, on cat_modify.php there is one category list.

- Javascript activated, 5 seconds to load the page, Firefox is frozen, CPU 100%
- Javascript deactivated, less 1 second to load the same page

Hardware configuration : Core2 Duo @1.80GHz, 2GB memory
Operating system : Ubuntu 7.10 (Linux 2.6.22)


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Online

 

#2 2008-10-25 14:13:15

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

Do you want a $conf to disconnect resizable jQuery function?
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2008-10-25 14:28:19

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13082

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

VDigital wrote:

Do you want a $conf to disconnect resizable jQuery function?

I don't know yet. Maybe development of this new feature was made on a 10 categories gallery and so the problem was impossible to see. It might be just a JavaScript trick to make things fast as before.

If we can't optimize JavaScript for this kind of situation, yes a disable option would suit me :-)


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Online

 

#4 2008-10-25 18:55:20

rub
Piwigo Team
Lille
2005-08-26
5019

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

I cannot optimize code for rezeable because it's only one line of code. But, we can change options.
For autosize, we can found other plugin.
For datepicker, we can perhaps optimize.

A conf, why not?
General or by type?

We can also add a little remark line witch disabled javascript for the current session?

Offline

 

#5 2008-10-25 21:03:19

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13082

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

rub wrote:

For autosize, we can found other plugin.

Tell what to test to tell you if it's resizable or autosize that is the origin of slowliness.

rub wrote:

General or by type?

What else than category list might be heavy to load?

rub wrote:

We can also add a little remark line witch disabled javascript for the current session?

Tell us more, I don't understand what you meant.


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Online

 

#6 2008-10-25 21:53:37

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

My analysis...
On  cat_modify, we are using:

/template-common/lib/jquery.packed.js
/template-common/lib/plugins/jquery.autogrow-textarea.js
/template-common/lib/ui/ui.core.packed.js
/template-common/lib/ui/ui.resizable.packed.js
/template-common/lib/ui/ui.accordion.packed.js    


/ui.accordion.packed.js and /jquery.packed.js are used everywhere in admin, I exclude them.

So the problem is between
/template-common/lib/plugins/jquery.autogrow-textarea.js
and
/template-common/lib/ui/ui.core.packed.js
/template-common/lib/ui/ui.resizable.packed.js

And currently I am in doubt because on autogrow-textarea or resizable are not active on first call.

So z0rglub could you in cat_modify.tpl...

remove

{include file='include/autosize.inc.tpl'}
or
{include file='include/resize.inc.tpl'}

and test each case.
Thanks.
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2008-10-25 23:12:04

rub
Piwigo Team
Lille
2005-08-26
5019

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

z0rglub wrote:

rub wrote:

For autosize, we can found other plugin.

Tell what to test to tell you if it's resizable or autosize that is the origin of slowliness.

Response by VDigital

z0rglub wrote:

rub wrote:

General or by type?

What else than category list might be heavy to load?

Unit mode for caddie for example! A lot of picture with datepicker, autosize...

But when I said general or by type, I want to say a general $conf in order to disabled all heavy javascrip code (autosize, resizeable, datepicker) or one $conf by heavy js element.

z0rglub wrote:

rub wrote:

We can also add a little remark line witch disabled javascript for the current session?

Tell us more, I don't understand what you meant.

No option in $conf necessary.
Each user choice with cookie session what he wants.

Link must be "Desabled javascrit - Page generated in 0.649 s (27 SQL queries in 0.031 s) - Powered by  Piwigo  2.0 - Contact Webmaster".
Click on "Desabled javascrit", this options is saved in cookies (pwg_set_cookie_var) and the text become ""Enabled javascrit - Page generated in 0.649 s (27 SQL queries in 0.031 s) - Powered by  Piwigo  2.0 - Contact Webmaster"

Offline

 

#8 2008-10-26 08:13:13

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

rub wrote:

Click on "Desabled javascrit", this o...ome ""Enabled javascrit - Page generated in 0.649 s (27 SQL queries in 0.031 s) - Powered by  Piwigo  2.0 - Contact Webmaster"

Disabled JavaScript", this o...ome ""Enabled JavaScript

(with a "p" in script, an "i" in disabled)

No additional value with Dis/en-abled JavaScript display on my side.

I want to find the faulty script and :
- find a confortable explanation
- find a correction or add a temporary bypass $conf

8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#9 2008-10-26 14:36:51

rub
Piwigo Team
Lille
2005-08-26
5019

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

VDigital wrote:

rub wrote:

Click on "Desabled javascrit", this o...ome ""Enabled javascrit - Page generated in 0.649 s (27 SQL queries in 0.031 s) - Powered by  Piwigo  2.0 - Contact Webmaster"

Disabled JavaScript", this o...ome ""Enabled JavaScript

(with a "p" in script, an "i" in disabled)

Oups! 8-)

Offline

 

#10 2008-10-26 15:46:28

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

VDigital wrote:

So z0rglub could you in cat_modify.tpl...

remove

{include file='include/autosize.inc.tpl'}
or
{include file='include/resize.inc.tpl'}

and test each case.
Thanks.
8-)

Up!
8-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#11 2015-08-02 13:11:26

Maria
Guest

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

Hello.

When i leave my cursor on the right or left edge of every single picture a message is being dsiplayed
'Previous nameofphoto' or 'Next photo'
How can i disengage that javascript? And where is located to do so?
Thank you in advance Piwigo team

 

#12 2015-08-02 13:42:51

flop25
Piwigo Team
2006-07-06
6603

Re: [2.0.0RC3] slowliness on resizable select boxes with many categories

would you please open a new thread instead of posting on 7years old thread? thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Beta testing
  •  » [2.0.0RC3] slowliness on resizable select boxes with many categories

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact