? Success

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
2 Oct 2014

it a try to optimise the Joomla! form rendering with a lot inputs.
validation.js it third slow script after chosen.js and bootstrap.tooltip on the form page,

Here is some graphs.
test made with disabled chosen.js and bootstrap.tooltip on Global configuration page.

Before this fix:
screen 2014-10-02 16 23 30 1164x438
After fix:
screen 2014-10-02 16 19 55 1085x445

As can see difference around 400ms for JFormValidator initialization, at least on my PC in Chrome :smile:

How to test.
Apply patch.
Go to global configuration, or other form where a lot inputs, and compare whether all still works and whether it "feels faster" :wink:

avatar Fedik Fedik - open - 2 Oct 2014
avatar jissues-bot jissues-bot - change - 2 Oct 2014
Labels Added: ?
avatar Fedik Fedik - change - 2 Oct 2014
The description was changed
avatar brianteeman brianteeman - change - 4 Oct 2014
Category JavaScript
avatar anibalsanchez
anibalsanchez - comment - 14 Jan 2015

@test OK


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4435.

avatar anibalsanchez anibalsanchez - test_item - 14 Jan 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 14 Jan 2015

@Fedik can you fix the merge conflicts here? I will test after a resync to be sure that nothing is broken :smile: Thanks!

avatar Fedik
Fedik - comment - 15 Jan 2015

@zero-24 done :wink:

and I added strict mode, so please retest

avatar zero-24
zero-24 - comment - 15 Jan 2015

Thanks @Fedik

@test successful I can't see any issues with the patch applyed.

and I added strict mode, so please retest
@Fedik do @anibalsanchez also retest or can we move it now to RTC?

avatar zero-24 zero-24 - test_item - 15 Jan 2015 - Tested successfully
avatar Fedik
Fedik - comment - 15 Jan 2015

yes, would be good to retest :wink:

@anibalsanchez can you please try one more time? :wink:

avatar anibalsanchez
anibalsanchez - comment - 15 Jan 2015

... hmmm ... I have manually copied the two files... In Global Configuration, I try to save an empty Site Name, it shows the message "Invalid field: Site Name"... Cancel button does not work.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4435.

avatar Fedik
Fedik - comment - 15 Jan 2015

@anibalsanchez I just checked without the patch, and got same result as you,
so I think it is not a regression that made by this pull request ....
looks like you found some bug in global configuration page :smile:

avatar Fedik
Fedik - comment - 15 Jan 2015

yes it :bug: on the configuration page,
there test for task == "application.cancel" but must be task == "config.cancel.application" on first look

avatar zero-24
zero-24 - comment - 15 Jan 2015

@Fedik do you think we should fix this with this pull or should we open a new for this issue?

avatar dgt41
dgt41 - comment - 15 Jan 2015

@Fedik You are right here: cancel button has <button onclick="Joomla.submitbutton('config.cancel.application')" class="btn btn-small">

and the script we inject is :

    Joomla.submitbutton = function(task)
    {
        if (task == "application.cancel" || document.formvalidator.isValid(document.getElementById("application-form")))
        {
            Joomla.submitform(task, document.getElementById("application-form"));
        }
    };
avatar Fedik
Fedik - comment - 15 Jan 2015

@zero-24 I think would be better separate as it is different things .. I can try make another pull with fix, but at evening

avatar zero-24 zero-24 - change - 15 Jan 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 15 Jan 2015

@zero-24 would be better separate as it is different things .. I can try make another pull with fix, but at evening

Thanks moving here to RTC as the other issue will be handled in a seperate PR by @Fedik Thanks to all!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4435.

avatar dgt41
dgt41 - comment - 15 Jan 2015

@test success
before time = 1.004 ms
screen shot 2015-01-15 at 3 36 39

After time = 0.734 ms
screen shot 2015-01-15 at 3 37 22

avatar zero-24 zero-24 - alter_testresult - 15 Jan 2015 - dgt41: Tested successfully
avatar Fedik
Fedik - comment - 15 Jan 2015

there fix for cancel button #5738

avatar brianteeman brianteeman - change - 16 Jan 2015
Labels Added: ?
avatar roland-d roland-d - close - 16 Jan 2015
avatar zero-24 zero-24 - close - 16 Jan 2015
avatar roland-d roland-d - change - 16 Jan 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-01-16 22:17:41
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment