I am using the YUI layout manager which seems to work at an OK speed. However if the page contains a large <Table> with about 500 rows, the YUI render() function takes about a minute longer to run.
When I open the same page without the layout manager it opens in less than a second.
My only concern is with IE 7. I tried it on firefox and it only took about three seconds.
Any ideas on what is taking so long? Can I somehow tell the layout manager to ignore the table?
I finally figured it out myself.
The trick is to hide the content that should be ignored by the layout manager.
Before calling
render()set thestyle.display = 'none'for a tag that contains a large chunk of the page you don’t need the layout manager to manage. Set it back to normal after withstyle.display = 'block'.