There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware missing monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: website page Loading questions


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 12:55 PM #1
Solved: website page Loading questions
Hi

My question is Does your whole web page reloads everything even though you are using the same background for all the pages?

Ex: If I'm on my home page and a user clicks on the "About us" or "contact us" page, does it mean everything reloads for " About us" or " contact us" page ?

I'm trying to figure out a way to save some bandwidth.


Thank you
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 01:10 PM #2
Items like graphics will be cached and shouldn't be downloaded again unless the browser cache is disabled or there are HTTP headers instructing the browser not to cache that item. Of course, as you change pages the new pages will be downloaded but then they will be cached.

Depending on how the browser is configured, it will check more frequently or less frequently to see if any of the cached content has changed so it can download fresh copies, if necessary.

A GREAT way to save bandwidth is to scale images down to their desired display size instead of using HTML to scale the image for you. Use GIFs or JPEGs and stay away from PNGs unless you can keep the PNGs small in size. PNGs can get LARGE in size. Keep the DPI of the images around 72. Keep the file sizes of images small.

Another way to conserve bandwidth is to put common CSS and JavaScript in external files that are shared across pages instead of embedding CSS and JavaScript in the HTML files themselves.

Lastly, use CSS for page layout and ditch HTML tables for page layout to reduce page size.

Peace....
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 03:35 PM #3
thanks for the reply. I did everything that you have mentioned in the above regarding how to set image, css, and javascript. But I still see my whole page gets reloaded. By the way, how do you check the http headers instructions to see the cache?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 04:12 PM #4
Those will be "pragma" directives in the HTML files themselves. If you aren't aware of these already, chances are they aren't being used at all.

Something else to consider, the browser displaying a blank page as the new page loads doesn't mean it's downloading everything again.

Peace...
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 04:21 PM #5
When you click on the button, I can see it loads the whole page. It gives a quick blink. Any other areas I might need to look at? EX: coding ?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 04:24 PM #6
Quote:
Originally Posted by skyhigh007 View Post
When you click on the button, I can see it loads the whole page. It gives a quick blink.
That's what I mean. By virtue of seeing the "blink", that doesn't mean images and other stuff is actually being downloaded again. Of course, the new page will load (at least the first time) and subsequent times you'll get cached versions. Different browsers will cache differently so you might be different behavior.

Without seeing the site in question, it's hard to comment on anything specific that could be changed. I checked out your gallery in the other thread and outside of the first loading of the images, the content loaded quickly.

Peace...
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 04:42 PM #7
I know that you have to load int he first time, but it keeps on reloading it every time it goes to those pages.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 04:53 PM #8
I don't think it is. I've experienced what you describe on THIS forum. Sometimes the techguy header at the top will stay in place as I switch forums and sometimes it will disappear and re-appear but it isn't being downloaded.

Without seeing anything, it sounds like what you're describing is an image being "painted" as the page is rendered, which is indicative of a LARGE image being dynamically scaled down to a smaller resolution.

Peace...
Mudley's Avatar
Computer Specs
Member with 99 posts.
 
Join Date: Apr 2008
Experience: Advanced
29-May-2008, 08:10 PM #9
how much traffic does your site get?
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 09:21 PM #10
I'm just testing my site on the server. Is there anything that i can do on the server site? Ex: cache control or stuffs like that?
So, I should reduce the file size?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 11:24 PM #11
Without being able to see the content we're dealing with, it's hard to provide better advice than what we've done so far. We've got no idea how large the images and HTML files are. We've got no idea how images there are per page. We've basically got nothing.

Peace...
Mudley's Avatar
Computer Specs
Member with 99 posts.
 
Join Date: Apr 2008
Experience: Advanced
29-May-2008, 11:33 PM #12
Quote:
Originally Posted by tomdkat View Post
Without being able to see the content we're dealing with, it's hard to provide better advice than what we've done so far. We've got no idea how large the images and HTML files are. We've got no idea how images there are per page. We've basically got nothing.

Peace...
what he said

i'm glad you're thinking ahead about your site though!
skyhigh007's Avatar
Senior Member with 382 posts.
 
Join Date: Jun 2004
29-May-2008, 11:43 PM #13
What do you mean by "Of course, as you change pages the new pages will be downloaded but then they will be cached." So, they will be cached in the browser?
Or I have to set the cache control for the web server?
Mudley's Avatar
Computer Specs
Member with 99 posts.
 
Join Date: Apr 2008
Experience: Advanced
29-May-2008, 11:45 PM #14
browsers cache images, css files, and js files

if you provide a link, we can likely save you a lot of wasted time and confusion
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
29-May-2008, 11:46 PM #15
Quote:
Originally Posted by skyhigh007 View Post
What do you mean by "Of course, as you change pages the new pages will be downloaded but then they will be cached." So, they will be cached in the browser?
Yep. If you have Firefox installed, fire it up and type "about:cache" in the URL bar and you will see how much of your browser cache is utilized. If you install the CacheViewer extension, you can see what is in the cache easily.

Peace...
Reply

Tags
php, php cache, web page cache


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:04 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.