...

View Full Version : Ultra slow loading time and freezing on my homepage. * RESOLVED *



BabyJack
05-10-2008, 06:47 PM
Hi. I am developing my site on Notepad and on my homepage, there is a 30+ second wait but on the other pages which have exactly the same code like this:
HOMEPAGE HTML:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-

20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="EA.ico" rel="Shortcut Icon" />
<title>Wifeeee! Sensation Simmy Summer</title>

<style type="text/css">
/*<![CDATA[*/
div.c2 {text-align: center}
div.c1 {clear:both;}
/*]]>*/
</style>
</head>
<body onload="goforit()">
<div id="logo"></div><script type="text/javascript">
//<![CDATA[
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array

("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"

"+hours+":"+minutes+":"+seconds+" "+dn
+"<\/b><\/font><\/small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
//]]>
</script> <span id="clock"></span></div>
<div id="thanks">Welcome to Wifee - Enlighten your Simming Experience - <a href="index.php">Homepage</a></div>
<div id="wrapper">
<div id="nav">
<h1>Main Navigation</h1>
<a href="Downloads.php">Downloads</a><br />
<a href="Tutorials.php">Tutorials</a><br />
<a href="Information.php">Information</a><br />
<a href="Media.php">Media</a><br />
<a href="Upcoming.php">Upcoming</a><br />
<h1>Resources Navigation</h1>
<a href="Avatars.php">Avatars</a><br />
<a href="Blends.php">Blends</a><br />
<a href="Icons.php">Icons</a><br />
<a href="Templates".php>Templates</a><br />
<a href="Guides.php">Guides</a><br />
<h1>Community</h1>
<a href="Forums/index.php">Wifee Forums</a><br />
<a href="Guestbook.php">Guestbook</a><br />
<a href="Chat.php">Chatroom</a><br />
<h1>Miscellaneous</h1>
<a href="History.php">Site History</a><br />
<a href="Games.php">Games</a><br />
<a href="Books.php">Books and Poetry</a><br />
<a href="Movies.php">Movies</a><br />
<a href="Music.php">Music</a><br />
<h1>Updations</h1>
<strong>July 1st</strong> - Wifee Grand Opening!<br />
<strong>July 2nd</strong> - All pages opened!<br />
<h1>Site Stats</h1>
<strong>Webmaster</strong> - BabyJack<br />
<strong>Unique Hits</strong> - 294<br />
<strong>Staff Members</strong> - 8<br />
<strong>Downloads Total</strong> - 0<br />
<h1>Partner Sites</h1>
<a href="http://simsmad.co.uk" target="_blank">Simsmad.co.uk</a>
</div>
<div id="content">
<h1>Welcome to Wifee!</h1>
</div>
<div class="c1"></div>
</div>
<div class="c2" id="footer">Copyright Wifee.co.uk 2008 - All Rights Reserved - Design kindly provided by <a

href="http://www.simsmad.co.uk" target="_blank">Ryan</a> - Modifyed by me - Best viewed when in Firefox and Maximized

Screen</div>
</body>
</html>



OTHER PAGES HTML:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="EA.ico" rel="Shortcut Icon" />
<title>Wifeeee! Sensation Simmy Summer</title>

<style type="text/css">
/*<![CDATA[*/
div.c2 {text-align: center}
div.c1 {clear:both;}
/*]]>*/
</style>
</head>
<body onload="goforit()">
<div id="logo"><script type="text/javascript">
//<![CDATA[
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array

("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"

"+hours+":"+minutes+":"+seconds+" "+dn
+"<\/b><\/font><\/small>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
//]]>
</script> <span id="clock"></span></div>
<div id="thanks">Welcome to Wifee - Enlighten your Simming Experience - <a href="index.php">Homepage</a></div>
<div id="wrapper">
<div id="nav">
<h1>Main Navigation</h1>
<a href="Downloads.php">Downloads</a><br />
<a href="Tutorials.php">Tutorials</a><br />
<a href="Information.php">Information</a><br />
<a href="Media.php">Media</a><br />
<a href="Upcoming.php">Upcoming</a><br />
<h1>Resources Navigation</h1>
<a href="Avatars.php">Avatars</a><br />
<a href="Blends.php">Blends</a><br />
<a href="Icons.php">Icons</a><br />
<a href="Templates".php>Templates</a><br />
<a href="Guides.php">Guides</a><br />
<h1>Community</h1>
<a href="Forums/index.php">Wifee Forums</a><br />
<a href="Guestbook.php">Guestbook</a><br />
<a href="Chat.php">Chatroom</a><br />
<h1>Miscellaneous</h1>
<a href="History.php">Site History</a><br />
<a href="Games.php">Games</a><br />
<a href="Books.php">Books and Poetry</a><br />
<a href="Movies.php">Movies</a><br />
<a href="Music.php">Music</a><br />
<h1>Updations</h1>
<strong>July 1st</strong> - Wifee Grand Opening!<br />
<strong>July 2nd</strong> - All pages opened!<br />
<h1>Site Stats</h1>
<strong>Webmaster</strong> - BabyJack<br />
<strong>Unique Hits</strong> - 294<br />
<strong>Staff Members</strong> - 8<br />
<strong>Downloads Total</strong> - 0<br />
<h1>Partner Sites</h1>
<a href="http://simsmad.co.uk" target="_blank">Simsmad.co.uk</a>
</div>
<div id="content">
<h1>Welcome to our Downloads!</h1>
</div>
<div class="c1"></div>
</div>
<div class="c2" id="footer">Copyright Wifee.co.uk 2008 - All Rights Reserved - Design kindly provided by <a href="http://www.simsmad.co.uk" target="_blank">Ryan</a> - Modifyed by me - Best viewed when in Firefox and Maximized Screen</div>
</body>
</html>



ALL PAGES CSS:

body {
width: auto;
height: auto;
background: url(back.jpg);
margin: 10px auto 10px auto;
scrollbar-arrow-color: #2aa1ff;
scrollbar-track-color: #FFFFFF;
scrollbar-face-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-shadow-color: ;
}


#logo {
width: 780px;
height: 180px;
font-size: 12px;
font-family: Tahoma, Verdana;
background: url(logo.png);
href: index.php;
border: 2px solid #FFFFFF;
margin: 10px auto 0px auto;
padding: 10px;
}
#wrapper {
width: 800px;
height: auto;
background: #FFFFFF;
background-color: #FFFFFF;
border: 2px solid #FFFFFF;
margin: 0px auto 0px auto;
}
#nav {
width: 190px;
height: auto;
float: left;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
background-color: #FFFFFF;
border: 2px solid #FFFFFF;
margin: 0px;
padding: 5px;
}
#nav a {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
}
#nav a:visited {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
}
#nav a:hover {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #56CEFE;
}
#nav h1{
font-size: 11px;
color: #666666;
font-family: Tahoma, Verdana;
text-decoration: none;
border-bottom: 1px solid #cccccc;
margin-bottom: 0px;
}
#nav h2{
font-size: 11px;
color: #666666;
font-family: Tahoma, Verdana;
text-decoration: none;
margin-top: 0px;
}
#content {
display: inline;
width: 570px;
height: auto;
float: right;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
background-color: #FFFFFF;
border: 2px solid #ffffff;
margin: 5px;
padding: 5px;
}
#content a {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
border-bottom: 1px solid #56CEFE;
}
#content a:visited {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
border-bottom: 1px solid #56CEFE;
}
#content a:hover {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #56CEFE;
border-bottom: 1px solid #666666;
}
#content img {
margin: 2px;
}
#content h1{
font-size: 11px;
color: #666666;
font-family: Tahoma, Verdana;
text-decoration: none;
border-bottom: 1px solid #cccccc;
margin: 0px;
}
#welcome {
font-size: 30px;
color: #666666;
font-family: Tahoma, Verdana;
text-decoration: none;
border-bottom: 1px solid #cccccc;
margin-top: 10px;
}

#content h2{
font-size: 9px;
color: #666666;
font-family: Tahoma, Verdana;
text-decoration: bold;
text-align: right;
margin: 0px;
}
#footer {
width: 790px;
height: auto;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
background-color: #FFFFFF;
border: 2px solid #FFFFFF;
margin: 5px auto 0px auto;
padding: 5px;
}
#nav a {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
}
#nav a:visited {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #666666;
}
#nav a:hover {
margin-top: 0px;
font-family: Tahoma, Verdana;
font-size: 11px;
text-decoration: none;
color: #56CEFE;
font-weight: bold;
}

#thanks {
width: 790px;
height: auto;
font-family: Tahoma, Verdana;
font-size: 11px;
text-align: right;
text-decoration: none;
color: #666666;
background-color: #FFFFFF;
align: center;
border: 2px solid #FFFFFF;
margin: 0px auto 0px auto;
padding: 5px;
}
#thanks a:link {
font-family: Tahoma, Verdana;
font-size: 11px;
text-align: right;
text-decoration: none;
color: #666666;
border-bottom: 1px dashed #666666;
}
#thanks a:visited {
font-family: Tahoma, Verdana;
font-size: 11px;
text-align: right;
text-decoration: none;
color: #666666;
border-bottom: 1px dashed #666666;
}
#mytable {
width: 400px;
padding: 0;
margin: 2px auto 2px auto;
}

caption {
padding: 0 0 5px 0;
width: 700px;
font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
text-align: right;
}

th {
font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
color: #4f6b72;
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
border-top: 1px solid #C1DAD7;
letter-spacing: 2px;
text-transform: uppercase;
text-align: left;
padding: 6px 6px 6px 12px;
background: #CAE8EA url(images/bg_header.jpg) no-repeat;
}

th.nobg {
border-top: 0;
border-left: 0;
border-right: 1px solid #C1DAD7;
background: none;
}

td {
border-right: 1px solid #C1DAD7;
border-bottom: 1px solid #C1DAD7;
background: #fff;
padding: 6px 6px 6px 12px;
color: #4f6b72;
}


td.alt {
background: #F5FAFA;
color: #797268;
}

th.spec {
border-left: 1px solid #C1DAD7;
border-top: 0;
background: #fff url(bullet1.gif) no-repeat;
font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

th.specalt {
border-left: 1px solid #C1DAD7;
border-top: 0;
background: #f5fafa url(bullet2.gif) no-repeat;
font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
color: #797268;
width: 100px;
}

.download{
display:block;
width:110px;
height:35px;
background:#f8fcfe url(download.gif) repeat-x;
border:1px solid #68a012;
-moz-border-radius:4px;
line-height:35px;
text-align:center;
font-size:12px;
text-decoration:none;
color:#000;
}

.blue-sec{
width:auto;
height:auto;
padding:5px;
background:#f8fcfe url(images/v12/hover_bg.gif) bottom repeat-x;
border:1px solid #99defd;
-moz-border-radius:4px;
}

.download-button:hover{
background-position:0 -35px;
color:#000;
text-decoration:none;
}


font-family: Verdana;
font-size: 11px;
width: 110px;
margin-right: 5px;
}

#login .theSubmit {
font-family: Verdana;
font-size: 10px;
background-color: #333333;
color: #FFFFFF;
margin-right: 5px;
}


Any help is veeeeeeeeeeeeeeeeeeery much appreciated. And thanked alot.

Apostropartheid
05-10-2008, 07:10 PM
So, the...links?

BabyJack
05-10-2008, 07:15 PM
What do you mean?
I told you I was developing inNotePad and it is not on the web :)

_Aerospace_Eng_
05-10-2008, 08:38 PM
We can't possibly tell you why its loading slow as we don't have all of the files you are using. Put the site online somewhere. Its very possible that its just your computer. Also I suggest removing this line

<?xml version="1.0"?>
Thats throwing IE6 into quirks mode that may cause some stuff to not display properly.

BabyJack
05-10-2008, 08:41 PM
When I save the page as index.html and not index.php it is faster. Do I need to convert all pages or just leave them .php?

oracleguy
05-10-2008, 09:37 PM
When I save the page as index.html and not index.php it is faster. Do I need to convert all pages or just leave them .php?

When the extension is .php and the web server is configured to handle PHP pages, it has to invoke the PHP engine and process any code on that page. So if you aren't using any PHP on a page, there is no reason to do that and thus can be .html.

BabyJack
05-11-2008, 10:34 AM
Ah, I plan to be using some PHP on my page though, so It is .php but Its alot quicker with .html so I might just ignore what I was going to do or convert the file endings to .php.

I was going to be using cutenews.

Apostropartheid
05-11-2008, 12:54 PM
I think one of the reasons it's slowing down the PHP parser is because you've used an XML declaration. The opening <? is a PHP opening marker, so...
Mind you, I'm guessing.

oracleguy
05-11-2008, 08:22 PM
Ah, I plan to be using some PHP on my page though, so It is .php but Its alot quicker with .html so I might just ignore what I was going to do or convert the file endings to .php.

I was going to be using cutenews.

If you are hosting this yourself, the php pages could just be noticeably slower due your computer being slow or a PHP misconfiguration.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum