-
1. Re: Performance issue: IE7
nbelaevski Mar 17, 2010 7:34 AM (in response to vfarina)1 of 1 people found this helpfulHi Veronica,
1) Are there any particular components that cause slowdown?
2) You can use a4j:log to track performance on the client
-
2. Re: Performance issue: IE7
vfarina Mar 17, 2010 10:55 AM (in response to nbelaevski)Hi Nick,
Firstly, thanks a lot for you reply.
I have just put in place the <a4j:log> and what I noticed is:
Part of the stack trace from the ajax debug on IE7:
...
...
error[15:31:34,114]: Error to clear node content by innerHTML Unknown runtime errordebug[15:31:34,130]: search for elements by name 'script' in element inputdebug[15:31:34,130]: Scripts in updated part count : 0debug[15:31:34,130]: Update part of page for Id: GS_SearchResultBody:fr:deselectButton successfuldebug[15:31:34,130]: Update page part from call parameter for ID GS_SearchResultBody:fr:numDocuments_headerdebug[15:31:34,145]: call selectSingleNode for id= GS_SearchResultBody:fr:numDocuments_headerdebug[15:31:34,145]: Replace content of node by outerHTML()debug[15:31:34,145]: search for elements by name 'script' in element spandebug[15:31:34,145]: Scripts in updated part count : 0debug[15:31:34,145]: Update part of page for Id: GS_SearchResultBody:fr:numDocuments_header successfuldebug[15:31:34,145]: Update page part from call parameter for ID GS_SearchResultBody:fr:ds1debug[15:31:34,145]: call selectSingleNode for id= GS_SearchResultBody:fr:ds1debug[15:31:34,160]: Replace content of node by outerHTML()debug[15:31:34,357]: search for elements by name 'script' in element divdebug[15:31:34,357]: Scripts in updated part count : 1debug[15:31:34,357]: Update part of page for Id: GS_SearchResultBody:fr:ds1 successfuldebug[15:31:34,357]: Update page part from call parameter for ID error[15:31:34,114]: Error to clear node content by innerHTML Unknown runtime errordebug[15:31:34,130]: search for elements by name 'script' in element inputdebug[15:31:34,130]: Scripts in updated part count : 0debug[15:31:34,130]: Update part of page for Id: GS_SearchResultBody:fr:deselectButton successfuldebug[15:31:34,130]: Update page part from call parameter for ID GS_SearchResultBody:fr:numDocuments_headerdebug[15:31:34,145]: call selectSingleNode for id= GS_SearchResultBody:fr:numDocuments_headerdebug[15:31:34,145]: Replace content of node by outerHTML()debug[15:31:34,145]: search for elements by name 'script' in element spandebug[15:31:34,145]: Scripts in updated part count : 0debug[15:31:34,145]: Update part of page for Id: GS_SearchResultBody:fr:numDocuments_header successfuldebug[15:31:34,145]: Update page part from call parameter for ID GS_SearchResultBody:fr:ds1debug[15:31:34,145]: call selectSingleNode for id= GS_SearchResultBody:fr:ds1debug[15:31:34,160]: Replace content of node by outerHTML()debug[15:31:34,357]: search for elements by name 'script' in element divdebug[15:31:34,357]: Scripts in updated part count : 1debug[15:31:34,357]: Update part of page for Id: GS_SearchResultBody:fr:ds1 successfuldebug[15:31:34,357]: Update page part from call parameter for ID GS_SearchResultBody:fr:mtdebug[15:31:34,357]: call selectSingleNode for id= GS_SearchResultBody:fr:mtdebug[15:31:34,418]: Replace content of node by outerHTML()debug[15:31:38,397]: search for elements by name 'script' in element tabledebug[15:31:38,397]: Scripts in updated part count : 0debug[15:31:38,397]: Update part of page for Id: GS_SearchResultBody:fr:mt successfuldebug[15:31:34,357]: call selectSingleNode for id= GS_SearchResultBody:fr:mtdebug[15:31:34,418]: Replace content of node by outerHTML()debug[15:31:38,397]: search for elements by name 'script' in element tabledebug[15:31:38,397]: Scripts in updated part count : 0debug[15:31:38,397]: Update part of page for Id: GS_SearchResultBody:fr:mt successful......For information:GS_SearchResultBody:fr:mt is the <rich:datatable>GS_SearchResultBody:fr:ds1 is the <rich:datascroller>Between the blue lines there is almost 4 seconds!! What is going on?As you can see, I got an error in the first line that I don't have on FIREFOX.I also noticed that the Replace content of node by outerHTML() is not called on FIREFOX.I will appreciate a lot if you have any idea of what is going on with the script executed on IE7!I will keep on analyzing to understand a little bit better how it works.Thanks a lot! -
3. Re: Performance issue: IE7
vfarina Mar 17, 2010 12:15 PM (in response to vfarina)Hi,
The bottleneck seems to be on:
oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
When the newnode is the table, the XMLSerializer takes like 2 seconds on IE7!!!
The same execution on IE6 takes 200ms!!!!
Any idea? Have you noticed the same problem on your IE7 browser?
Thank you!
-
4. Re: Performance issue: IE7
nbelaevski Mar 17, 2010 4:32 PM (in response to vfarina)1 of 1 people found this helpfulVeronica,
Can you please post page code so that I'll try to reproduce the problem?
One thing that can cause slowdowns is incorrect HTML code (e.g. DIV inside SPAN) - you can copy-paste logged XML code into w3c validator and check.
-
5. Re: Performance issue: IE7
vfarina Mar 18, 2010 11:38 AM (in response to nbelaevski)Hello Nick,
I attached the xhtml page & source code.
The w3c validator retrieves 100 errors...
About the parser...Do you think that the NEKO filter could help?
Thanks a lot for your help.
-
sourceCode.html.zip 12.6 KB
-
GS_SearchResult.xhtml.zip 3.1 KB
-
-
6. Re: Performance issue: IE7
cosmacr Apr 25, 2010 5:35 AM (in response to vfarina)I have the same problem. The javascript from RichFaces is loaded very slow in IE7. Any news about this?
Thank you!