...

View Full Version : Load Time - What's delaying this?



rmfreyre
08-23-2011, 10:58 PM
http://everythingsyoga.netau.net/Angelina's%20Website2/Eat.html#

The second link to the right "Eat our Famous" is the link in question,
you'll notice the div on the left has about a 3 second delay.

Any thoughts? Thanks.

Logic Ali
08-24-2011, 03:07 AM
It doesn't seem to work at all, which isn't surprising because you're passing an unquoted ID as a parameter:


<li onclick="toggleMain('divHome');"><a href="#">Indulge Deliciously</a></li>
<br />

<li onclick="toggleMain('divMenu');"><a href="#">Eat Our Famous:</a></li><br />

Philip M
08-24-2011, 07:43 AM
There are quite a few syntax errors of double quotes within double quotes, so the sub-menus do not work:-

<div class="subMenu" onclick="toggleSubMenu("agcheese")">Adult Grilled Cheese</div>

<script language="javascript"> is long deprecated and obsolete. Use <script type = "text/javascript"> instead.

rmfreyre
08-24-2011, 03:39 PM
..i'm tryin' to troubleshoot this. It seems to not work at all? or it doesn't work at all. I'm only on one computer so i don't get to check it too often, but i'm using "in-private browsing" to do my checks.

at the end of the document you'll notice i declare the objects and send the objects to the JS functions. could that be why? sending an object instead of a string, because its larger it takes longer?

rmfreyre
08-24-2011, 03:41 PM
There are quite a few syntax errors of double quotes within double quotes, so the sub-menus do not work:-

<div class="subMenu" onclick="toggleSubMenu("agcheese")">Adult Grilled Cheese</div>

<script language="javascript"> is long deprecated and obsolete. Use <script type = "text/javascript"> instead.

i appreciate the input, though i'm not focusing on this part of the script.

My question has to do with load time of the main pages. the subpages will probably be removed.

Logic Ali
08-24-2011, 09:15 PM
i appreciate the input, though i'm not focusing on this part of the script.

My question has to do with load time of the main pages. the subpages will probably be removed.Once the site has loaded fully, I don't notice any appreciable delay in displaying the part you mentioned originally.
There are errors being generated, caused by the statrements below trying to address unrendered elements.


document.getElementById('homePage').style.display = "block";
document.getElementById('menuPage').style.display = "block";
document.getElementById('contactPage').style.display = "block";
document.getElementById('joinPage').style.display = "block";
document.getElementById('menuFood').style.display = "block";



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum