Topic closed
Pages: 1
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)
Offline
Do you want a $conf to disconnect resizable jQuery function?
8-)
Offline
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 :-)
Offline
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
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.
Offline
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-)
Offline
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
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-)
Offline
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
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-)
Offline
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
would you please open a new thread instead of posting on 7years old thread? thx
Offline
Pages: 1
Topic closed