Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 6th, 2004, 07:09 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to The Squirrel
page loading question

I have a question about the site that is in development for my work. I have it set up deep in the sites directory so that I can test it online without it being public knowledge that the site is there and I can use the internet to access it fine.

But I was testing it at home and the load times were horrible. This wouldn't puzzle me so if it was just once or if the page was loaded full of crap. Usually the first time you visit a site it takes a bit longer to load, then after that the images are cached and load times arn't bad. But in this case each time I load the page it is horribly slow. Here at work it loads in no time after it is cached but at home it is slow as I'll get out. I can't figure it out because I pre-load all the images before the page loads to the browser, I have a template that is called by means of the include tag in PHP. But each time I load the site from home it feels like it is the first time going and evne then just clicking on a link it takes along time for everything to display again. Any ideas on this?

Thanks,
The Squirrel

Reply With Quote
  #2  
Old February 7th, 2004, 07:37 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: page loading question

COuld just be that you have more bandwidth available to you at work. What are your connections like?

Reply With Quote
  #3  
Old February 7th, 2004, 09:07 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: page loading question

Your connection is probably faster. Aim to get it to work on 56Kbps (dial up) because still many people use it. Also do you have the php no cache header statement in the script. If yes then remove it.

Reply With Quote
  #4  
Old February 9th, 2004, 01:10 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to The Squirrel
RE: RE: page loading question


Quote:
Your connection is probably faster. Aim to get it to work on 56Kbps (dial up) because still many people use it. Also do you have the php no cache header statement in the script. If yes then remove it.


Connection speed is different, yes. But it shouldn't make this large of a difference. Here at work I have 1.5M down 386K up; at home I have 356k down. I can see it making a difference on the initial load but each and every load after that? Shouldn't it cache the images that have been loaded? I guess I'll toy with it and try to get it to load faster.

Reply With Quote
  #5  
Old February 10th, 2004, 02:22 AM
bearqst bearqst is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Alaska
Posts: 153 bearqst User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 47 sec
Reputation Power: 2
RE: page loading question

Have you tried running a validator against the page.

http://www.htmlhelp.com/tools/validator/

http://www.w3schools.com/site/site_validate.asp

Might also use

http://www.netmechanic.com/toolbox/html-code.htm
I use these all the time. The last one is a demo with a sales pitch, but works to do a down and dirty test.

Test from both work and home to compare results. This should show where the slow down is.

Reply With Quote
  #6  
Old February 10th, 2004, 04:57 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: page loading question

I just thought of something too. Check for a meta tag in the head of your page that references "pragma". If it is set to "no-cache" you will reload all of the images every time.

Reply With Quote
  #7  
Old February 10th, 2004, 02:48 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to The Squirrel
RE: RE: page loading question


Quote:
I just thought of something too. Check for a meta tag in the head of your page that references "pragma". If it is set to "no-cache" you will reload all of the images every time.


I do not have any meta tags that regernces the "pragma" line. Only meta tags I have are this one "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">" a description one and one that is "<meta name="robots" content="index, follow">"
In the documents it did have some javascript
Code:
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>


It was always automatically inserted into the document whenever I saved. It is not really needed so I took it out of the pages. I will test the results this evening when I return home.

Bearqst; I have not ran it through a validator but I will do so here this morning to see what it comes up with. Thanks for the tip.

The Squirrel

Reply With Quote
  #8  
Old February 12th, 2004, 12:45 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to The Squirrel
RE: RE: RE: page loading question

Ok, I did some testing at home and it seems limited to just one of our computers there. I tried on 3 others at home and the page loads just like it should. WHy it is slower on one machine I don't know.

The Squirrel

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > page loading question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT