|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
RE: page loading question
COuld just be that you have more bandwidth available to you at work. What are your connections like?
|
|
#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.
|
|
#4
|
|||
|
|||
|
RE: RE: page loading question
Quote:
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
RE: RE: page loading question
Quote:
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 |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > page loading question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|