Web Analytics Made Easy -
StatCounter Load Time - What's delaying this? - CodingForum

Announcement

Collapse
No announcement yet.

Load Time - What's delaying this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Load Time - What's delaying this?



    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.

  • #2
    It doesn't seem to work at all, which isn't surprising because you're passing an unquoted ID as a parameter:

    Code:
       <li onclick="toggleMain([SIZE="5"][COLOR="Red"]'[/COLOR][/SIZE]divHome[SIZE="5"][COLOR="Red"]'[/COLOR][/SIZE]);"><a href="#">Indulge Deliciously</a></li>
          <br />
    
       <li onclick="toggleMain([SIZE="5"][COLOR="Red"]'[/COLOR][/SIZE]divMenu[SIZE="5"][COLOR="Red"]'[/COLOR][/SIZE]);"><a href="#">Eat Our Famous:</a></li><br />

    Comment


    • #3
      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.
      Last edited by Philip M; Aug 24, 2011, 02:46 AM.

      All the code given in this post has been tested and is intended to address the question asked.
      Unless stated otherwise it is not just a demonstration.

      Comment


      • #4
        i AM the author..

        ..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?

        Comment


        • #5
          Originally posted by Philip M View Post
          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.

          Comment


          • #6
            Originally posted by rmfreyre View Post
            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.
            Code:
            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";

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎