Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-02-2011, 11:35 PM   PM User | #1
Jackage
New Coder

 
Join Date: Jul 2011
Location: United Kingdom
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Jackage is an unknown quantity at this point
"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:

Quote:
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.
Jackage is offline   Reply With Quote
Old 08-03-2011, 01:25 AM   PM User | #2
bullant
Banned

 
Join Date: Feb 2011
Posts: 2,699
Thanks: 13
Thanked 395 Times in 395 Posts
bullant is on a distinguished road
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.
bullant is offline   Reply With Quote
Old 08-03-2011, 01:29 AM   PM User | #3
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
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
teedoff is offline   Reply With Quote
Old 08-03-2011, 01:34 AM   PM User | #4
bullant
Banned

 
Join Date: Feb 2011
Posts: 2,699
Thanks: 13
Thanked 395 Times in 395 Posts
bullant is on a distinguished road
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.
bullant is offline   Reply With Quote
Old 08-03-2011, 03:18 PM   PM User | #5
Jackage
New Coder

 
Join Date: Jul 2011
Location: United Kingdom
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Jackage is an unknown quantity at this point
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.
Jackage is offline   Reply With Quote
Old 08-03-2011, 04:41 PM   PM User | #6
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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"
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 08-03-2011, 05:05 PM   PM User | #7
Jackage
New Coder

 
Join Date: Jul 2011
Location: United Kingdom
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Jackage is an unknown quantity at this point
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/
Jackage is offline   Reply With Quote
Reply

Bookmarks

Tags
content, load

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:31 PM.


Advertisement
Log in to turn off these ads.