Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Speed up a HTML page loading request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Speed up a HTML page loading request" Watch "Speed up a HTML page loading request" New topic
Author

Speed up a HTML page loading request

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213
Hi,

I have a html page with 2000 input box fields. Currently, I use Firefox 3.6+ to load the page, it takes almost about 30 seconds. Is there any way to speed up the loading speed? Please help.



Thanks
Benson
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Validate the html. http://validator.w3.org/

Avoid tables for mark up.
See if there is a way to design the page without all those inputs.
Are you running any JavaScript against all of those inputs?

Eric
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213
Hi Eric,

Yes, there are tables in the html page. Howver, there is no any javascript involved. The following is the html content for your reference. Please advise.



Thanks
Benson

[GDB - Removed crazy long amount of code]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I've edited your post and removed all that code you put in. It was killing our server trying to render it and no one is going to look through hundreds of lines of code.


GenRocket - Experts at Building Test Data
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213
I tried to attach a html file called form. But the error message is 'file with extension .form is not allowed' Please advise how to attach it.


Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

We don't need to see the whole page -- you've already been told one of the problems: replace the tables with CSS layout.

I'd also seriously review the usability of the page -- it's way too long.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Speed up a HTML page loading request