You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Haiming Zhang <Ha...@redflex.com.au> on 2013/05/09 03:10:59 UTC

Submit form is very slow in IE

Hi All,

Unfortunately I am still using tapestry 4. I have an issue in my new developed page. In this page I have 2500 checkboxes, 180 propertySelction components and 350 text fields. The main purpose of this page is to collect information by configure these checkboxes and text fields.

When I load the page in IE, the speed is ok. But when I try to submit the page, it takes around 15 seconds to refresh the page. However, it's not a problem in Chrome and Firefox. Both load and submit only take no more than 3 seconds.

We only support IE so I need a solution of  the submit speed for IE. Anyone has ideas and suggestions? I appreciate all the helps.

Regards,
Haiming

________________________________
If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


RE: Submit form is very slow in IE

Posted by Haiming Zhang <Ha...@redflex.com.au>.
thank you.

I only have 7 onchange listeners and all these are Javascript actions. Except I only have the Submit button to submit all the changes.

Regards,

-----Original Message-----
From: Lance Java [mailto:lance.java@googlemail.com]
Sent: Thursday, 9 May 2013 8:58 PM
To: Tapestry users
Subject: RE: Submit form is very slow in IE

Surely a tabgroup or a select pull down could filter the fields based on a category or some other grouping?

Failing that, I'd look at the javascript that is executing and the number of clientside objects being created. Do you attach hundreds of onchange listeners to hundreds of fields? Sometimes, you are better to create a single generic listener instance and attach it to every field instead of one per field.

If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Submit form is very slow in IE

Posted by Lance Java <la...@googlemail.com>.
Surely a tabgroup or a select pull down could filter the fields based on a
category or some other grouping?

Failing that, I'd look at the javascript that is executing and the number
of clientside objects being created. Do you attach hundreds of onchange
listeners to hundreds of fields? Sometimes, you are better to create a
single generic listener instance and attach it to every field instead of
one per field.

Re: Submit form is very slow in IE

Posted by Dmitry Gusev <dm...@gmail.com>.
Actually there is a way to make it fast.

Things may become faster if you reduce number of HTML "input"s from HTML
DOM.

Just remove them from HTML and rewrite submit logic to your own.

You may replace checkboxes with images. Replace those images with real
checkboxes when user hovers this image or changes focus using TAB key (to
make him ability to click on it). The same could be done for input
type='text' and all the controls. For inputs you may show text value
inplace and only show editor when use clicks on it, etc.

In this case you will only have few DOM elements and the page will weight
less and run faster.

But in this case as you understand you will have to write client-side
input's state management manually in javascript.
Probably store it in some json object and post that object on submit. And
you will have to write your own server-side logic to parse and handle that
json object.

This isn't that hard actually. I used this approach in one of my projects
on a similar heavy page.

On Fri, May 10, 2013 at 5:20 AM, Haiming Zhang <Haiming.Zhang@redflex.com.au
> wrote:

> Hi,
>
> Thank you.
>
> Although we should not concern about the "full time operator" 's feeling
> under this topic, I actually asked her for you. She is quite happy of the
> new feature as she does not need to go through and fill the 100 pages
> documents everyday manually (After that is the calculation of statistics,
> manually).
>
> The another advantage of putting 2500 checkboxes in a single page is that
> she can use the tick all button to check 200 checkboxes once, then uncheck
> few for this column if needed. Do you think that will help if I filter the
> 2500 checkboxes into 50/100 pages?
>
> Anyway, thank you for all your help. From Thiago's reply, it seems there
> is no code level solution for IE7 and IE8.
>
> -----Original Message-----
> From: Lance Java [mailto:lance.java@googlemail.com]
> Sent: Friday, 10 May 2013 1:14 AM
> To: Tapestry users
> Subject: Re: Submit form is very slow in IE
>
> Why don't you ask your "full time operator" what he thinks of 2500
> checkboxes on a single page? I bet he's got something to say about it :)
>
> If you are not an authorised recipient of this e-mail, please contact me
> at Redflex immediately by return phone call or by email. In this case, you
> should not read, print, retransmit, store or act in reliance on this e-mail
> or any attachments, and should destroy all copies of them. This e-mail and
> any attachments are confidential and may contain privileged information
> and/or copyright material of Redflex or third parties. You should only
> retransmit, distribute or commercialise the material if you are authorised
> to do so. This notice should not be removed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

RE: Submit form is very slow in IE

Posted by Lance Java <la...@googlemail.com>.
> I only have 7 onchange listeners
I assume that you have 7 clientside listeners in total? (ie you are not
adding one of these 7 in a <t:loop>?)

> I actually asked her for you, she is quite happy
I knew as soon as I typed 'him' it would be a her. That'll teach me to save
keystrokes on my phone! I guess you possibly have a grid with 180 rows,
each row has 13 checkboxes, 2 text fields and 1 select. Not that unwieldy
when I consider it like that, I've seen worse spreadsheets.







___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and delete this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is prohibited.

Please refer to http://www.bnpparibas.co.uk/en/email-disclaimer/ for
additional disclosures.

On 10 May 2013 02:22, "Haiming Zhang" <Ha...@redflex.com.au> wrote:
>
> Hi,
>
> Thank you.
>
> Although we should not concern about the "full time operator" 's feeling
under this topic, I actually asked her for you. She is quite happy of the
new feature as she does not need to go through and fill the 100 pages
documents everyday manually (After that is the calculation of statistics,
manually).
>
> The another advantage of putting 2500 checkboxes in a single page is that
she can use the tick all button to check 200 checkboxes once, then uncheck
few for this column if needed. Do you think that will help if I filter the
2500 checkboxes into 50/100 pages?
>
> Anyway, thank you for all your help. From Thiago's reply, it seems there
is no code level solution for IE7 and IE8.
>
> -----Original Message-----
> From: Lance Java [mailto:lance.java@googlemail.com]
> Sent: Friday, 10 May 2013 1:14 AM
> To: Tapestry users
> Subject: Re: Submit form is very slow in IE
>
> Why don't you ask your "full time operator" what he thinks of 2500
checkboxes on a single page? I bet he's got something to say about it :)
>
> If you are not an authorised recipient of this e-mail, please contact me
at Redflex immediately by return phone call or by email. In this case, you
should not read, print, retransmit, store or act in reliance on this e-mail
or any attachments, and should destroy all copies of them. This e-mail and
any attachments are confidential and may contain privileged information
and/or copyright material of Redflex or third parties. You should only
retransmit, distribute or commercialise the material if you are authorised
to do so. This notice should not be removed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

RE: Submit form is very slow in IE

Posted by Haiming Zhang <Ha...@redflex.com.au>.
Hi,

Thank you.

Although we should not concern about the "full time operator" 's feeling under this topic, I actually asked her for you. She is quite happy of the new feature as she does not need to go through and fill the 100 pages documents everyday manually (After that is the calculation of statistics, manually).

The another advantage of putting 2500 checkboxes in a single page is that she can use the tick all button to check 200 checkboxes once, then uncheck few for this column if needed. Do you think that will help if I filter the 2500 checkboxes into 50/100 pages?

Anyway, thank you for all your help. From Thiago's reply, it seems there is no code level solution for IE7 and IE8.

-----Original Message-----
From: Lance Java [mailto:lance.java@googlemail.com]
Sent: Friday, 10 May 2013 1:14 AM
To: Tapestry users
Subject: Re: Submit form is very slow in IE

Why don't you ask your "full time operator" what he thinks of 2500 checkboxes on a single page? I bet he's got something to say about it :)

If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Submit form is very slow in IE

Posted by Lance Java <la...@googlemail.com>.
Why don't you ask your "full time operator" what he thinks of 2500
checkboxes on a single page? I bet he's got something to say about it :)

RE: Submit form is very slow in IE

Posted by Haiming Zhang <Ha...@redflex.com.au>.
Thanks.

It seems I do not have any code level way to fix the problem.

And you are right, this page works very slow in IE7, slow in IE8 and faster in IE9.

Thank you for the information again.

Regards.

-----Original Message-----
From: Thiago H de Paula Figueiredo [mailto:thiagohp@gmail.com]
Sent: Thursday, 9 May 2013 10:04 PM
To: Tapestry users
Subject: Re: Submit form is very slow in IE

On Thu, 09 May 2013 07:46:44 -0300, Haiming Zhang <Ha...@redflex.com.au> wrote:

> Thank you. Our aim is to support IE7-IE9. Do you have any code level
> suggestions? Or it's really not possible to speed up? Thanks again.

Besides rewriting your page to not have this huuuuuuuuge amount of fields, there's absolutely nothing you can do. Nothing.

IE7 is veeeeeeeeeeeeeeeeeeeeeeeery slow when compared to Chrome, Firefox, Safari and Opera. IE8 is veeeeery slow. IE9 seems to not be slow.

I think the problem is that you have an IMHO very badly architected page (huge and probably quite hard to use) and want it to run fast in slow browsers (IE7, IE8). There's no solution for that which doesn't involve refactoring the page (unless you have the power to make Microsoft rewrite
IE7 and IE8 to not be so slow).

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

Re: Submit form is very slow in IE

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 09 May 2013 07:46:44 -0300, Haiming Zhang  
<Ha...@redflex.com.au> wrote:

> Thank you. Our aim is to support IE7-IE9. Do you have any code level  
> suggestions? Or it's really not possible to speed up? Thanks again.

Besides rewriting your page to not have this huuuuuuuuge amount of fields,  
there's absolutely nothing you can do. Nothing.

IE7 is veeeeeeeeeeeeeeeeeeeeeeeery slow when compared to Chrome, Firefox,  
Safari and Opera. IE8 is veeeeery slow. IE9 seems to not be slow.

I think the problem is that you have an IMHO very badly architected page  
(huge and probably quite hard to use) and want it to run fast in slow  
browsers (IE7, IE8). There's no solution for that which doesn't involve  
refactoring the page (unless you have the power to make Microsoft rewrite  
IE7 and IE8 to not be so slow).

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Submit form is very slow in IE

Posted by Haiming Zhang <Ha...@redflex.com.au>.
Thank you. Our aim is to support IE7-IE9. Do you have any code level suggestions? Or it's really not possible to speed up? Thanks again.

-----Original Message-----
From: Rural Hunter [mailto:ruralhunter@gmail.com]
Sent: Thursday, 9 May 2013 7:13 PM
To: users@tapestry.apache.org
Subject: Re: Submit form is very slow in IE

Try to upgrade your ie to latest versions.

 2013/5/9 16:56, Haiming Zhang :
> Hi,
>
> Thank you for your reply and suggestion. The suggestion is good but we need so many checkboxes and text fields, this page is after filtering. We have 10 more similar pages and we have a full time operator on this.
>
> My question is how come this works fast in Chrome/Firefox but slow in IE (IE is our supporting web browser). Any suggestions on how to make it faster? Thanks all.
>
> Regards,
>
> -----Original Message-----
> From: Lance Java [mailto:lance.java@googlemail.com]
> Sent: Thursday, 9 May 2013 6:16 PM
> To: Tapestry users
> Subject: Re: Submit form is very slow in IE
>
> Here's a suggestion: Never create a page with 2500 checkboxes, 180 propertySelction components and 350 text fields!!!
>
> No human can possibly comprehend a form like that. You could add filters (ie a search box) and / or paging to the form to make it more usable.
>
> If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


Re: Submit form is very slow in IE

Posted by Rural Hunter <ru...@gmail.com>.
Try to upgrade your ie to latest versions.

于 2013/5/9 16:56, Haiming Zhang 写道:
> Hi,
>
> Thank you for your reply and suggestion. The suggestion is good but we need so many checkboxes and text fields, this page is after filtering. We have 10 more similar pages and we have a full time operator on this.
>
> My question is how come this works fast in Chrome/Firefox but slow in IE (IE is our supporting web browser). Any suggestions on how to make it faster? Thanks all.
>
> Regards,
>
> -----Original Message-----
> From: Lance Java [mailto:lance.java@googlemail.com]
> Sent: Thursday, 9 May 2013 6:16 PM
> To: Tapestry users
> Subject: Re: Submit form is very slow in IE
>
> Here's a suggestion: Never create a page with 2500 checkboxes, 180 propertySelction components and 350 text fields!!!
>
> No human can possibly comprehend a form like that. You could add filters (ie a search box) and / or paging to the form to make it more usable.
>
> If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Submit form is very slow in IE

Posted by Haiming Zhang <Ha...@redflex.com.au>.
Hi,

Thank you for your reply and suggestion. The suggestion is good but we need so many checkboxes and text fields, this page is after filtering. We have 10 more similar pages and we have a full time operator on this.

My question is how come this works fast in Chrome/Firefox but slow in IE (IE is our supporting web browser). Any suggestions on how to make it faster? Thanks all.

Regards,

-----Original Message-----
From: Lance Java [mailto:lance.java@googlemail.com]
Sent: Thursday, 9 May 2013 6:16 PM
To: Tapestry users
Subject: Re: Submit form is very slow in IE

Here's a suggestion: Never create a page with 2500 checkboxes, 180 propertySelction components and 350 text fields!!!

No human can possibly comprehend a form like that. You could add filters (ie a search box) and / or paging to the form to make it more usable.

If you are not an authorised recipient of this e-mail, please contact me at Redflex immediately by return phone call or by email. In this case, you should not read, print, retransmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain privileged information and/or copyright material of Redflex or third parties. You should only retransmit, distribute or commercialise the material if you are authorised to do so. This notice should not be removed.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Submit form is very slow in IE

Posted by Lance Java <la...@googlemail.com>.
Here's a suggestion: Never create a page with 2500 checkboxes, 180
propertySelction components and 350 text fields!!!

No human can possibly comprehend a form like that. You could add filters
(ie a search box) and / or paging to the form to make it more usable.