Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts

    "Please wait 'til we load our page"

    Hello,

    I have been looking for a code which loads my content and images as well as my javascript and style before my visitor enters my site. I have been on a website before (I cannot remember the link) and it has:

    Please wait til we take our own sweet time to load this page
    with the content behind it, but slightly 'dimmed'. I think that this would be great for my site.

    If anyone would help me with this I will greatly appreciate it!
    Thanks.

  • #2
    Banned
    Join Date
    Feb 2011
    Posts
    2,699
    Thanks
    13
    Thanked 395 Times in 395 Posts
    One way to that is to put a layer with 100% height and opacity to some value less than full opacity (for the dimming effect) on top of the wrapper container containing all your page content.

    Then in window.onload, remove the layer from the DOM so the page content is seen without any dimming.

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    I have to ask....is your page load speed THAT slow? I mean I guess unless you have a big flash intro, you page should load fairly quickly no?
    Teed

  • #4
    Banned
    Join Date
    Feb 2011
    Posts
    2,699
    Thanks
    13
    Thanked 395 Times in 395 Posts
    Quote Originally Posted by teedoff View Post
    I have to ask....is your page load speed THAT slow? I mean I guess unless you have a big flash intro, you page should load fairly quickly no?
    It might be aimed at users on slow dial up connections.

  • #5
    New Coder
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by teedoff View Post
    I have to ask....is your page load speed THAT slow? I mean I guess unless you have a big flash intro, you page should load fairly quickly no?
    Nope, unfortunately I have a very annoying text overlay

    http://www.codingforums.com/showthre...42#post1117642

    and I thought as the overlay only lasts a few seconds I could use that to load the news feeds.

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    do you have this on a live/test site we can access? it might be better to just solve the primary issue instead of hiding it with a "preloader screen"

  • #7
    New Coder
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    28
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    do you have this on a live/test site we can access? it might be better to just solve the primary issue instead of hiding it with a "preloader screen"
    Yes, I do. This link is my localhost so it may not be running 24/7. I have quite a few test files which aren't important - This link should take you straight to it.

    http://86.4.198.242/Web-Design/PlanetVolume/


  •  

    Tags for this Thread

    Posting Permissions

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