Solved

Optimizing

Posted on 2000-03-01
9
259 Views
Last Modified: 2010-04-09
Hi There,
I was reading a note in a job advertisement and it mentioned the need to know how to optimize tables and pages to load fast, they referred to it as production code.

I know about page size and such, but what are they talking about when it comes to optimizing tables and pages for speed?  What tricks are they referring to?

Thanks for any help,
davlun
0
Comment
Question by:davlun20080
  • 5
  • 3
9 Comments
 
LVL 2

Expert Comment

by:egbservices
ID: 2575792
I have learned to keep the pages and the graphics small in size, uncluttered, cross platform compatible, use the standard colours, us standard fonts, no frames, no automatic links to other sites (counters, statisical stuff, public cgi-bins, etc.) stay away from sounds and so on! The real idea as far as I can see is to speed up the loading of the pages...
The to URL's can give you some ideas too!
http://websitegarage.netscape.com/
http://www.delorie.com/web/
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 2576904
optimizing tables is referencing to nesting of tables and absolute sizing vs relative sizing, etc
go to this ongoing discussion:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=html&qid=10299084 

It is really informative.

CJ
0
 
LVL 3

Author Comment

by:davlun20080
ID: 2577181
Hi CJ,

I think I was looking for more that a link to an ongoing questions but the info on the table was similar to what I thought.

I am really trying to find out what separates the production code from not, the tricks to making a page load fast in the different browsers and so forth.

Will reopen for now to see what other discussion can be generated to see about the rest of the question.

Thanks and feel free to add info here for the points.

davlun
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 19

Expert Comment

by:cheekycj
ID: 2577514
OK.

Check out these URLs:
http://www.netscapeworld.com/netscapeworld/nw-02-1997/nw-02-bestpract.html
http://www.pantos.org/atw/speed.html
http://www.netmechanic.com/

The main page of your web site should load in 8 seconds or less with a 56K modem. According to two recent surveys, conducted by Forrester Research and Gartner Group, ecommerce sites are losing $1.1 to $1.3 billion in revenue each year due to customers click-away caused by slow loading sites. If a page takes too long to load, your potential customer will not wait. Ultimately costing you business.


Use graphics sparingly to convey information. Each graphic takes another trip to the server. Consolidate neighboring graphics or use CSS'd text or table cells with background colors to speed display. WebMonkey has a policy "use graphics for graphics and text for text, not graphic text." Size graphics to fit in a typical user's window (a maximum of 465 to 532 pixels wide [i.e., the default Netscape screen to a printed page], or for max screen space viewable on all platforms use a max of 580 pixel wide tables to fit on Mac screens). It's easy to see if a site's been designed on only a PC, the page is too wide on a Mac, typically 620-640 pixel wide tables fit a PC's monitor but are too wide to display on a 14-15" Mac monitor.

Break up your tables vertically for a cascading load to appear more responsive (we use this technique on our front page). One huge table takes much longer to display content than stacked smaller tables which display one at a time. Microsoft's IE5 has a FIXED table width feature that speeds table display, unfortunately this is proprietary and does not work on Netscape's browser.

Optimize graphic file size for Web display (a maximum of 20 KB per graphic). Utilize page display speedups such as the WIDTH and HEIGHT attributes for images. Use JPEGs where possible and appropriate (continuous-toned images) and minimize the color palette of GIFs to optimize file size. Provide text alternatives to graphics for low-bandwidth users, the blind, and for speed. ALTernate text tags for images should be functional, not descriptive. If the graphic has no function, use ALT="" (i.e., <IMG SRC="pics/splash.jpg" ALT="">).

Optimize your HTML by removing excess spaces, comments, tags and commentary, especially on your home page, to minimize file size and download time. Products like Antimony Software's Mizer and VSE's HTML Turbo automate this process by removing excess characters and HTML to optimize your HTML and JavaScript. I manually tune our home page for minimize file size (typically 14-15K for the HTML page), but these products can help even file-size obsessed webmasters like myself. These products are drag and drop, and should be used as the last step before you upload your page (the files are harder to read after many of the returns are removed). After optimization your pages will appear to snap onto the screen.



0
 
LVL 19

Expert Comment

by:cheekycj
ID: 2577522
0
 
LVL 3

Author Comment

by:davlun20080
ID: 2577617
CJ,
Can you give me your home page so I can see what you mean by breaking up tables verically.
do you mean:
table
***
table
***
table

or:
 
t     t     t
a  *  a  *  a
b  *  b  *  b
l  *  l  *  l
e     e     e

Thanks,
davlun
0
 
LVL 19

Accepted Solution

by:
cheekycj earned 75 total points
ID: 2577731
I can't show you my front page because it is on an intranet and our internet site uses FLASH so tables aren't needed but what I mean is instead of using a table that is large:
<table>
<tr> <td colspan=2> header</td></tr>
<tr> <td> left bar</td>
     <td> content</td></tr>
<tr> <td> footer</td></tr>
</table>

it is better to have:
<table>
<tr> <td> header</td></tr>
</table>
<table>
<tr> <td> left bar</td>
     <td> content</td></tr>
</table>
<table>
<tr> <td> footer</td></tr>
</table>

CJ

0
 
LVL 3

Author Comment

by:davlun20080
ID: 2578580
Thanks for the comments and the links,
davlun
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 2581257
Just glad to help.

CJ
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

786 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