SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Feb 2013
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    load full page before showing anything?

    I see many sites have a quick loading animation, then the site is shown in all its glory with images etc beeing fully loaded. My question is how do I do this, load the full page before anything is shown?

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,938
    Mentioned
    214 Post(s)
    Tagged
    12 Thread(s)
    One way would be to show a spinner (e.g. animated gif), then pull in the content via AJAX (injecting it into the DOM after it has been retrieved).
    Ponyfoo does this. Is this the kind of effect you mean?

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,799
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    A lot of people treat that as a sort of "go away" message. Most people want to see the page load straight away without anything interfering with the load of the page. Most people have fast enough access to the internet now that if properly written entire pages appear in a second or two. They only take longer when slowed down by effects like that.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,938
    Mentioned
    214 Post(s)
    Tagged
    12 Thread(s)
    Quote Originally Posted by felgall View Post
    A lot of people treat that as a sort of "go away" message.
    Not to mention the fact that it doesn't work if you have JavaScript disabled.


Bookmarks

Posting Permissions

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