Can a web page be made to appear instantly?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tarek01
    New Member
    • Feb 2010
    • 14

    #1

    Can a web page be made to appear instantly?

    Can a web page be made to appear in one shot, without seeing bits and pieces appear one after another? I realize this could be detrimental, especially for slow connections, but there are times when the load isn't that great, and a random order of page load can detract from a certain intended effect or purpose.

    Here's an example: http://www.dermatiquelaserandskin.com

    The page appears all together. I just can't figure out how it's being done. The CSS doesn't initially hide any of the container DIVS. I've also tried buffering page content in PHP with the ob_start function before sending to the browser, but it still draws everything a piece at a time.

    Thanks in advance.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    well, for me the page’s images took a while to load, while the page text was displaying.

    ob_start() does not affect the load since it is strictly server side. (it may work, if you have slow processes, but that’s rather rare). a web page usually renders the faster, the better HTML you write (including preset dimensions (like image width/height))

    Comment

    • chathura86
      New Member
      • May 2007
      • 227

      #3
      you can use a wrapper div as the most outter div and use inline css to hide it

      and use js to make it visible after the page loading

      Regards

      Comment

      • tarek01
        New Member
        • Feb 2010
        • 14

        #4
        @Dormilich: That's odd. I viewed it in 3 different environments to check consistency. Windows Vista with Firefox 3.6 and IE7, and also a Mac with Firefox 3.6, and all 3 show the site appearing instantly, after about 1 second of lag.

        @chathura: I'm aware the container DIV can be hidden beforehand, but this site doesn't seem to be using that technique, and I would be reluctant to use that method myself.

        I've never seen a site, other than the example in my post, do this without hiding the root DIV. Any other ideas? Thanks.

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          Originally posted by tarek01
          @Dormilich: That's odd. I viewed it in 3 different environments to check consistency. Windows Vista with Firefox 3.6 and IE7, and also a Mac with Firefox 3.6, and all 3 show the site appearing instantly, after about 1 second of lag.
          it may be due to me surfing with JavaScript disabled.

          Comment

          Working...