Unexplained slow /quick loading of CFV5 form

simelas 02 Feb, 2017
Hi all,

I have a puzzling behaviour with a pretty long form build with CFV5 ( must load around 75 fields including some arrays).

If the form is calling data from a database record it loads very quickly ( a couple of seconds)

If the form is called empty to create a new record it takes a long time to load ( probably more than 15 seconds with the browser "complaining" about slow page).

( Whole form checked several time and never saw anything specific .... Most of the form is build with "clicks" and only few lines of custom code.).
The same form previously build with CFV4 has not this behaviour ( eg quick opening if empty or loading record.....)

Any idea of possible reasons ?

s
Max_admin 03 Feb, 2017
Hi simelas,

What about the code you have in the form ? maybe it has a problem when the data from the database is not present ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 03 Feb, 2017
Hi Max,
indeed i had tried taking out all custom code. Same strange behaviour. This is why i got puzzled...

I had also tried suppressing alternatively various elements such as drop down, text fields, etc, ... and the only way to get a correct loading speed is to suppress some checkbox groups. ??? !!!
As reported previously: same form in CFV4 runs perfeclty well. ( Custom code of CFV4 adapted to fit to CVF5 when form was rebuilt with CFV5...)

Best Regards

S
Max_admin 05 Feb, 2017
Hi simelas,

Anything special about the checkbox groups ? they are in HTML or PHP code ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 09 Feb, 2017
Hi Max,

nothing special, php code. Copy of a standard chekbox group slightly altered. The amazing stuff is that i have the same behaviour, could it be a custom code or a standard check box group produced by the "designer".

Best regards,

s
Max_admin 11 Feb, 2017
Hi simelas,

How many checkbox groups do you have on the form ? any inside a loop ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 11 Feb, 2017
Hi Max,

6 checkbox groups. Two of them Inside another check box group loop. ( If i follow the logic of your question this could may mean 20 additionnal check box groups Inside a check box due to the loop ?).

I had tried also with the 6 checkbox groups taking them out of any loop and got same result : slow form to load if empty and quick to open if filled.


Best Regards,

S
Max_admin 15 Feb, 2017
Hi Simelas,

Sorry for not getting back to you sooner.

The checkbox groups code is a PHP code or HTML ? if its PHP then please try to use HTML code instead and check if it makes an difference ?

You can simply copy the HTML output from the page source and use it.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 15 Feb, 2017
Hi Max,
no worries !...

Checkbox group are in php ( copy of a standard checkbox group- slightly modified). I had tried html by indeed copying the output. No difference!....

The Checkbox groups are dynamically loading options ( around 20 values per group) from database ( mysqli). If i disable the dynamic loading for these checkbox groups, then loading speed of the page is ok ....


Best rgds

S
Max_admin 16 Feb, 2017
Hi simelas,

But how did you get them to load the data dynamically when they were in html ? by html I meant that they will be totally static, or you had a foreach loop ?

My intention was to test them without the "\GCore\Helpers\Html" call, please check if loading them without the html helper call makes a difference or not.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 16 Feb, 2017
Hi Max,
Miss understood last time.
Pure HTML also slow... Therefore not due to html helper.

Any hint ?

Best Regards,

S
Max_admin 18 Feb, 2017
Hi Simlelas,

this is strange, could you please post the one of the checkbox groups html code ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 18 Feb, 2017
Hi Max,

checkbox-group as attached,
Best Regards
S
GreyHead 19 Feb, 2017
Hi simelas,

The HTML looks OK - though I think there is a </div> missing. I tested it here and you can see it loads pretty quickly.

Bob
simelas 24 Feb, 2017
Hi Bob,

Thanks for testing. Indeed if alone in a page it loads pretty quickly. But as soon as it is included in the overall form , then the whole form slows down. !!!!

I'll continue searching ... The tricky thing is that the same form in CFV4 loads quick...
( The missing div was due to copy paste. It was indeed present in the original file

I ll keep you posted if i find something.

Best Regards

S
This topic is locked and no more replies can be posted.