Site Loading Question

Discussion in 'JavaScript' started by qwikad.com, Feb 8, 2012.

  1. #1
    Our site when it's loading (particularly in Chrome) it goes like this: left side, middle, right side ( see here: http://qwikad.com ). My question is is there a javascript code that can be used to make the loading more stable where the whole site loads at the same time?


    Thanks!
     
    qwikad.com, Feb 8, 2012 IP
  2. QZAX

    QZAX Greenhorn

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    I can see the site load at once. May be you have a slow connection.

    I can see that you are using <table> based template for structuring the content. It is not a good way go. This method used to be used a long time ago.

    When you use table, the contents are not loaded in that way. It effects in the rendering on the page.

    Use <div> instead of <table>.


    You posted your topic under javascript. Your problem has nothing to do with javascript. Your site have no javascript at all.
     
    QZAX, Feb 8, 2012 IP
  3. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,303
    Likes Received:
    1,702
    Best Answers:
    31
    Trophy Points:
    475
    #3
    The thing is there's a javascript code I stumbled across once, where it won't show your site until it's fully loaded. It takes a fraction of a second for the delay, but the effect is your site shows as a whole.
     
    qwikad.com, Feb 8, 2012 IP
  4. QZAX

    QZAX Greenhorn

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #4
    that is jquery that you are talking about. Jquery is also a javascript. It is a sort of package with lots of things bundled together.

    you can achieve using the following code.

    $(document).ready(function(){
    //the statement that you need to execute
    });


    Note that it needs the jquery file to be included for the script to work.




    But according to me it is not necessary what you are trying to do. It does not matter. Even if you really want it so, that is not the correct way to do.

    The script that I showed above is for other purpose. For eg. if you need to load something at the end, when everything else has been loaded.


    Use <div> on instead of <table>. That will be the better thing to do for you.
     
    QZAX, Feb 9, 2012 IP