Solved

partial html display

Posted on 2002-07-18
15
185 Views
Last Modified: 2010-04-09
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
Comment
Question by:vivdcosta
  • 3
  • 3
  • 2
  • +6
15 Comments
 
LVL 1

Expert Comment

by:ruifranco
ID: 7162011
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
 
LVL 3

Expert Comment

by:mastallama
ID: 7162034
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7162041
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
 
LVL 2

Expert Comment

by:Mark Roberts
ID: 7162575
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
 
LVL 18

Expert Comment

by:bruno
ID: 7162766
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
 
LVL 3

Expert Comment

by:ketapillar
ID: 7163555
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
 
LVL 12

Expert Comment

by:lexxwern
ID: 7164020
(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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 19

Expert Comment

by:webwoman
ID: 7164678
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7240668
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
 
LVL 18

Expert Comment

by:bruno
ID: 7240773
too many good suggestions, 0 paq, no refund of course.
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7241353
100 points can be split easily..

split betw all helping comments..
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7270992
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
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7297716
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
 
LVL 18

Expert Comment

by:bruno
ID: 7297724
silly me.

next time i'll think of your health first.  

:-)
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7297743
This from an EAB member? My gawd, you people must be slipping... <laughing>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now