I have done an application which is used to input the weekly work-activity hours. The structure is like
Mon Tue ---- Sun Activity 1 7 8 ---- - - - Activity n 1 0
The user has to input the no of hours in the activity input box daily, the activity comes from master, the problem is when the activities are large no of records say 1000 records then there will be 1000*7(no of days) textbox for input the records, due to this the loading time of webpage is very slow it is about 25 seconds and reason is only due to large no of textbox I want to reduce the page loading time to around 10 seconds. Is there any alternative to optimized page loading time?
The easiest thing to do would be to give the user some subset of the total number (say 100), some indication that there are more records to fill out (1-100 of 1000) and navigation buttons to go back and forth between the pages.
Is there any alternative to optimized page loading time?
Several. First and foremost is always to reduce the amount of stuff you're sending to the user's browser. It's very unlikely that they're going to need all that data at the same time. Just scrolling pages that big causes my mouse arm to spasm.
Secondly, if the HTTP conversation supports compressed data streams, make sure it's enabled for the page. Also investigate incremental page loading where the page is transmitted in chunks and the rendering can begin before the entire transmission is complete.
Thirdly, consider a more dynamic approach. Originally, I did things like this with applets, but applets are cumbersome to make available. These days AJAX is popular. I've gotten all sorts of response-time benefits by using JSF+RichFaces where complex pages get updates via AJAX instead of having to re-render the entire page. If you present the form as a collapsed outline and dynamically create the controls on demand instead of unconditionally, not only can you get faster page displays, you'll probably save the user wear and tear on eyes and mouse-moving muscles. [ June 24, 2008: Message edited by: Tim Holloway ]
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Jun 23, 2008
Thank you Joe and Tim for giving me a solution of my problem.