Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts

    Ultra slow loading time and freezing on my homepage. * RESOLVED *

    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:
    Code:
     <?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:
    Code:
     <?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:
    Code:
    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.
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #2
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    So, the...links?

  • #3
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    What do you mean?
    I told you I was developing inNotePad and it is not on the web
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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
    Code:
     <?xml version="1.0"?>
    Thats throwing IE6 into quirks mode that may cause some stuff to not display properly.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    Edit: 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?
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by BabyJack View Post
    Edit: 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.
    OracleGuy

  • #7
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    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.
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • #8
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by BabyJack View Post
    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.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •