JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 24th, 2013, 03:54 AM
rePete rePete is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2006
Posts: 658 rePete User rank is Sergeant Major (2000 - 5000 Reputation Level)rePete User rank is Sergeant Major (2000 - 5000 Reputation Level)rePete User rank is Sergeant Major (2000 - 5000 Reputation Level)rePete User rank is Sergeant Major (2000 - 5000 Reputation Level)rePete User rank is Sergeant Major (2000 - 5000 Reputation Level)rePete User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 3 h 47 m 13 sec
Reputation Power: 30
Going from one page to another smoothly, not bit by bit??

I am trying to make going from page to page look more clean on a website.

I have noticed that a few elements disappear immediately when I press a link to go to another page, then slowly it goes to the page and elements slowly appear one by one.

I decided to implement a javascript preloader and I would like to improve what I am getting.
- at page A, trying to go to page B
- click link to page B
- page A: high z-index elements like navigation bar and menu disappear instantly, bits of page A elements still there. Doesnt look good with bits of elements there!
- a few seconds later, window goes white, browser address changes to page B. Preloader covers whole screen
- page B elements loading in background of preloader
- then preloader disappears and page B is displayed complete.

What I do not like is how bits of elements disappear, then pauses for a few seconds while the browser goes to the address, after the pause it goes to white and then the preloader fills the page.

Is it possible for when the user clicks link B, the A page looks the same as though nothing is happening. Then all of a sudden, page B appears!

If thats not possible, is there a way that when bits of elements disappear immediately when link B is clicked, that a massive div covers the whole page with white so that the transition from page A to B looks more smooth??

I am thinking, I need to know what the steps are when a link is clicked and the browser goes to the next page, so I can know where to place a script so that a cover can be placed between the time link B is clicked and to the time page B is being loaded??

Any other suggestions would be great to make the transition from page to page look slick : )

Reply With Quote
  #2  
Old February 24th, 2013, 06:51 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Oct 2003
Posts: 3,129 MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level)MrFujin User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 23 h 6 m 34 sec
Reputation Power: 1736
Regarding the use of JavaScript, you could look at the AJAX method.
If you for example have a template page with header, footer, menu and content area, then you can use AJAX to only update the actual content area.
But it does have some drawback to take care of like the using of direct linking.

But i think you should also find out which element that makes it running "bit by bit".
Do the page have a lot of images? or is it mostly a text page?
From my experience, the times sink is when there are many (and/or large) images to download.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Going from one page to another smoothly, not bit by bit??

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap