User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,173 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,433 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 574 | Replies: 3
Reply
Join Date: Jan 2008
Posts: 25
Reputation: LogicWeb is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
LogicWeb LogicWeb is offline Offline
Light Poster

Help LogicWeb AJAX

  #1  
Mar 6th, 2008
Greetings,

When you *initially* load LogicWeb's home page, www.logicweb.com it hesitates for about 1-2 seconds on loading the ajax tabs up top (you can't miss it, right below main navigation bar). I am trying to figure out why this happens, but I just cannot seem to grasp the cause.

I am not a designer / programmer by trade so I'm not quite sure what to look for within the javascript files.

javascript:
www.logicweb.com/scripts/tabber.js

Any help on why it does not load instantaneously would be appreciated.
Talk Jesus Forums [ Over 100 Fulfilled Prophecies in the Bible: click here ]
.....................................................................................
LogicWeb...a smart web solution [ hosting for personal and business since 2003 ]
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: LogicWeb AJAX

  #2  
Mar 22nd, 2008
Ok,
There's nothing wrong with this bit of load time. It only took about 2 seconds for the page to load, and that's fine. Go to myspace and look at how long that piece takes to download.

To understand the "lag" you have to understand AJAX and what it is.

AJAX is taking a website and making it object oriented. You are using the "DOM" as it is called. The DOM should be the last thing to load on your browser. Since it is the last thing to load, any manipulation of it (AJAX) needs to wait until it is fully loaded.

Without looking at your tabber code, I am assuming that it's something that you didn't actually build yourself, I am aslo assuming that whoever wrote it did a good job and waited for DOM state 4 to occur (fully initialized) rather than saying "wait 2 seconds".

I know, conventionally, you expect items that appear at the top of the page to show up first, but that's not the case here. It is absolutely neccessary for any AJAX stuff to be the last things to load.
Sage
Reply With Quote  
Join Date: Jan 2008
Posts: 25
Reputation: LogicWeb is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
LogicWeb LogicWeb is offline Offline
Light Poster

Re: LogicWeb AJAX

  #3  
Mar 22nd, 2008
Sage, thank you for clarifying this in full detail. I appreciate that of you.

Thanks for the compliments on the site as well.
Talk Jesus Forums [ Over 100 Fulfilled Prophecies in the Bible: click here ]
.....................................................................................
LogicWeb...a smart web solution [ hosting for personal and business since 2003 ]
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: LogicWeb AJAX

  #4  
Mar 22nd, 2008
Just to put your mind at ease, there was a 1-2 second delay when first loading up your homepage, but then it showed up instantaneously as I navigated the site.

If it really bothers you that much, an idea might be to, by default, have non-Javascript versions of the tabs load at startup (where just the tabs themselves are clickable, with no menus). You could then add a line to the JavaScript file for the AJAX stuff to replace the contents that are there at startup. To the user, everything will load right away but it will just take a second or two for the dropdown menus to begin to work.

Note = I haven't read your javascript file so don't know how it's structured, but the general concept should be able to work.

Personally, I don't think it's necessary ... but, like I said, if it's something that's bothering you.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:23 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC