![]() |
Large number of HTML elements, Is there is any way to load the page faster?
Large number of HTML elements, Is there is any way to load the page faster?
I have a load page contains large number of html elements such as >150 forms and each forms having same name of elements but with different form names. E.g kindly please take a look over the attached html code. Since the requirement in such that I need to show all the 150 forms on one load. Also I try to use the yahoo YUI tab component, one tab contains 15 forms and the current screen is full already. I face a problem of very slow loading during initial load. Also I use ajax for server callings. So that I don’t have to redraw every time when I post something to the server. It works fine. Am looking a solution for initial load delay. Kindly please give me some tips over on this, how to overcome on this issue. Thank you. Code:
<DIV id = "divselectForm1" style="Z-INDEX: 1; LEFT: 0px; POSITION: absolute; TOP: 20px"> |
Why would you have that many forms? Sounds like the design needs to be rethought. :)
Eric |
a few suggestions:
providing stricter code to the browser would almost certainly reduce parsing time... using lower-case tags, quoted attribs, a doctype, and not using tables would also speed things up. if you must use tables, give each one a height and width, to cut down on redraws. without a pre-known height+width, the entire page is reflowed to fill a single cell... in fact, in general, the more things you pre-size, the faster the page can render. you could also move the style attribs to css classes, where they can be pre-parsed once, instead of once for each element... |
Please don't double post, you're wasting people's time by posting in two different forums.
http://www.codingforums.com/showthread.php?t=163916 Mods, please merge these threads. |
| All times are GMT +1. The time now is 12:32 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.