• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

partial html display

My Html page is a lengthy one. It takes a lot of time to display everything in the page. Is there any way in which the Html page can be displayed part by part, so that the user atleast sees something on the page ?
0
vivdcosta
Asked:
vivdcosta
  • 3
  • 3
  • 2
  • +6
1 Solution
 
ruifrancoCommented:
I believe you can only do that using some kind of server side programming like ColdFusion. ColdFusion does have a way to write HTML a piece at a time.

However, here's what you can do to reduce the amount of time the page takes to load:

1) Get read of unnecessary caracters like "" around properties (SIZE=5 instead of SIZE="5")

2) Get read of unnecessary white space. Use a program to "compress" HTML - there's plenty of free programs to do that - Basically, they remove white spaces that are not needed and write everything in a single line.

3) If you use images, reduce their size. Pictures only need to be 72dpi, not more. And, as far as JPG quality goes, you can also decrease it a lot without affecting the look of your page.

Hope this helps
0
 
mastallamaCommented:
depending on the content of the page, you may want to look into having page numbers at the top and bottom of the page, and have a next and previous links too.  Then you could break up your page into smaller pages and it still be easily navigated.

 ~ MastaLlama ~
0
 
COBOLdinosaurCommented:
There are a number of  ways to optimize page loading, and with the right layout and scripting, pages can be presented in parts that eliminates the long wait with a blank screen and hourglass.  You will need to post code or a link to the page so we can offer suggestions on alternatives.  Please do not follow the previous suggestion to remove quotes around tag properties.  That is non-standard and will create future problems for you.  The compression software mentioned has very little effect as the text is normally not the big part of the download and there is already some compression done on a page download anyway.

Please also indicate what browsers you need to support as that impacts what techniques are available.

Cd&
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Mark RobertsIncident ManagerCommented:
Re: Get read of unnecessary caracters like "" around properties (SIZE=5 instead of SIZE="5")

Be careful with removing the quotes.  If you ever try to convert your pages to XHTML you will create problems with not having it well formmed according to XML standards.
0
 
brunoCommented:
vivdcosta,

do NOT listen to the first two suggestions that ruifranco made, they are bad.

attributes should ALWAYS be quotes, and getting rid of white space will only make the code look horrible.


What i would do is what they FIRST recommened, which is checking which server language you can use.  ASP has a buffer property which can be used to serve just parts of the pages at a time.  if you can use ASP i'll give more info.

BRUNO
0
 
ketapillarCommented:
I'm guessing at all this...

Is your page all in one big table?  If so make it in smaller tables and the tables will be displayed one after the other and not have to wait for the whole thing to load.

BTW, You have a URL?



0
 
lexxwernCommented:
(1) optimise images - i personally feel png sucks! but use whichever format that gives reasonable quality and size, gif and jpeg maybe...

(2) use clean html   - i mean make sure that your tags do not overlap.

(3) table tips           - use colspans / rowspans whereever possible
                             - avoid nesting of tables if you can

(4) use css wisely   - a thoughtfully made css stylesheet will help a lot in reducing page sizes.

(5) <font> tags        - stop all use of the <font> tags, they are inefficient, non-standard, and take a awful lot of space
0
 
webwomanCommented:
If it's a static HTML page, all of the suggestions by Cd& and lexxwern are a good start -- but also consider just physically making new pages, with links to the next.

There's nothing that says the entire thing has to be on the same screen. As a matter of fact, it's probably better all around to break it up.

One caveat -- if this is a legal or reference document, just format it as cleanly as possible, in multiple tables so it comes up in pieces but all on the same page. If it's something like that people are NOT going to read it on screen, they're going to print it. Optimize it for printing (fixed width table, no more than 600px wide, black type, white background, no/minimal graphics, no effects).

If it's all text and you REALLY want it to load fast, forget HTML at all and just save it from a word processor or the browser as a TXT file. That will be very small, and load very fast. But you can't have graphics, links, or any formatting.
0
 
COBOLdinosaurCommented:
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&

0
 
brunoCommented:
too many good suggestions, 0 paq, no refund of course.
0
 
lexxwernCommented:
100 points can be split easily..

split betw all helping comments..
0
 
COBOLdinosaurCommented:
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
zero point PAQ  ---   ******* NO REFUND!!!! *******

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

<justification> I love to recommend awarding the points, but without some idea of the page content, it is impossible to say what if anything helped....besides an 8 way split would give Netminder a heart attack.
</justification>

Cd&
0
 
NetminderCommented:
Per recommendation, points NOT refunded and question closed, a much more reasonable recommendation on a question without any PAQ value except to give a humble, hardworking, kind and generous Moderator a heart attack.

Netminder
CS Moderator
0
 
brunoCommented:
silly me.

next time i'll think of your health first.  

:-)
0
 
NetminderCommented:
This from an EAB member? My gawd, you people must be slipping... <laughing>
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now