Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 06-26-2008, 04:56 AM Page Size
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
What total page size (including CSS, JavaScript, and media) do you generally shoot for when you create your websites? Any tricks you'd like to share? Here's a video with 14 tips about how to decrease page load time, along with the accompanying website with a total of 34 performance tips.

Last edited by VirtuosiMedia; 06-26-2008 at 02:44 PM..
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
 
Register now for full access!
Old 06-26-2008, 07:33 AM Re: Page Size
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
I hope that "decrease" load time instead of "increase"

Generally, it depends on the stickiness of your visitors.

For visitors who visit more than one page, minimize html (by using css), consolidate and compress css and javascript. Set reasonable expire times in the response headers. This will promote client caching and allow subsequent pages to load faster (ie... less to download).

For visitors who most likely see only one page, moving the css and js into the page will work out better.

In either case, smaller image sizes and fewer images will help. Some people merge images into one big one and use css to show the right part in the right place. This might be overkill but, it will reduce pings to the server. Avoid inline css, it can bloat pages quickly.

If you must send big pages, gzip compression works wonders. For a high traffic site, I recommend using a gzip accelerator card instead of doing it with code (definitely use a card for ssl).

Besides load time, for some pages render time can be a big deal. Especially with data tables. For those, giving rendering hints to the browser can help a great deal. Use thead, tfoot, and tbody (in that order). Avoid colspans and rowspans because they can cause the rendering engine in the browser to have to start over.

Including javascript at the bottom of the document will help render time too. Try to avoid the use of document.write in js as well.
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 06-26-2008, 02:44 PM Re: Page Size
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
Quote:
Originally Posted by willcode4beer View Post
I hope that "decrease" load time instead of "increase"

Generally, it depends on the stickiness of your visitors.

For visitors who visit more than one page, minimize html (by using css), consolidate and compress css and javascript. Set reasonable expire times in the response headers. This will promote client caching and allow subsequent pages to load faster (ie... less to download).

For visitors who most likely see only one page, moving the css and js into the page will work out better.

In either case, smaller image sizes and fewer images will help. Some people merge images into one big one and use css to show the right part in the right place. This might be overkill but, it will reduce pings to the server. Avoid inline css, it can bloat pages quickly.

If you must send big pages, gzip compression works wonders. For a high traffic site, I recommend using a gzip accelerator card instead of doing it with code (definitely use a card for ssl).

Besides load time, for some pages render time can be a big deal. Especially with data tables. For those, giving rendering hints to the browser can help a great deal. Use thead, tfoot, and tbody (in that order). Avoid colspans and rowspans because they can cause the rendering engine in the browser to have to start over.

Including javascript at the bottom of the document will help render time too. Try to avoid the use of document.write in js as well.
Oops, yeah, that was supposed to be decrease...I fixed it. Render time is a big deal because if at least some of the page renders, it gives the impression of activity, which will make it more likely that the user stays on the page until it finishes loading. Proper rendering can help offset large page sizes. But I'm still curious, what page size do you generally shoot for?
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 06-26-2008, 02:48 PM Re: Page Size
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I don't. I realize there are still Amish people on dial up (), but I assume most of my readers have broadband.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 06-27-2008, 01:40 AM Re: Page Size
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
Okay, so asking the question a little bit differently, what page size makes you go, "Oh boy, I'd better work on this a bit." 100k? 200k? 300k? More?
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 06-27-2008, 04:44 AM Re: Page Size
Extreme Talker

Latest Blog Post:
Chocolate Dessert With Diamond
Posts: 247
Trades: 0
Quote:
I hope that "decrease" load time instead of "increase"
Agree on this. People will not wait until your site is fully loaded. Some people will leave immediately your site once they encounter slow loading of page.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

ajcones is offline
Reply With Quote
View Public Profile Visit ajcones's homepage!
 
Old 06-27-2008, 12:43 PM Re: Page Size
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
This question depends a lot on your audience. I took many more liberties, for example, when doing a pages for a multi-million dollar massive development targeted at upper-class people, than when doing one for a boat rental company.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Page Size
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25130 seconds with 12 queries