homepage Welcome to WebmasterWorld Guest from 50.19.172.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Slow pages and availability calendar
linton

10+ Year Member



 
Msg#: 1003 posted 9:10 am on Dec 12, 2003 (gmt 0)

I have a site advertising my holiday home for rent and the Availability page has a table showing the coming 52 weeks and whether the property has been booked or not. I have put 52 rows (split into 2 cells each), total 104 cells. there are no photos on this page.

But this page is 49KB which takes 38 seconds top load at 28.8KBS which is too slow. The next largest pages on my site is only 16KB which is acceptable.

Is there any way that I can reduce the size of this page - ideally i would like it to be 20KB max.

Thanks,

Paul

 

traffik daddy

10+ Year Member



 
Msg#: 1003 posted 3:29 pm on Dec 12, 2003 (gmt 0)

Reduce the amount of HTML you use.

I'm not sure if this would be of any use to you, but would you just make do with one row and 2 columns and use the <p> tags or <br> tags to split your 52 weeks up? I suppose if you have your border showing on your table then it won't, but if you don't then this could help reduce the file size. Also, try using CSS as this too will reduce html coding. Run your site through the W3 validator to see which attributes you do not need (such as table height, etc).

See, using tables means that you have to give the table, table reference and table data attributes such as width, height, bgcolor, etc and can take up quite a bit of space. Just using <p> or <br> will keep this to a bare minimum.

You would also need to combine tags/remove empty tags. Try to keep your descriptions with less characters but as informative as possible. See, the more content the more K in your pages. Keyword your links and clean your html as much as possible.

You say there are no photos, but are there general images (such as buttons)? I like to use text links.

What type of menu do you use? If you use javascript then point it to an external javascript file.

This should take some loading time off your site.

Good luck
Terry

linton

10+ Year Member



 
Msg#: 1003 posted 3:45 pm on Dec 12, 2003 (gmt 0)

Thanks for you helpful reply Traffic Daddy.

There are a lot of comments for me to review here which will take me a little time.

Just to say that I like the look of cells with a RED background to show that the week is already booked and a white background to show that it is still available. That would be one disadvantage of just using <p> and <br> tags but that may be the only viable option to reduce the page size.

Thanks for the suggestions - I am working thru them.

Cheers.

Paul

JamesR

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1003 posted 5:53 pm on Dec 12, 2003 (gmt 0)

>RED background

You can do that all with CSS and greatly reduce the amount of code on page.

I have one site with a large table like you mention and the code bloat is enourmous. Repeating all the table and cell tags really adds up. It is not a popular page so I haven't bothered changing it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved