OZONE Asylum
Forums
DHTML/Javascript
Ajax / jQuery startup latency
This page's ID:
32293
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Unfortunately, page access is restricted by the customer and I don't have a PHP server of mine (tip : Google App Engine and JSP make for free high scalability hosting). But the relevant sections of code are : [code] jQuery.noConflict(); // Disable jQuery $ shortcut to prevent conflicts with // other libraries. (function($) { // Wrap in a closure. Creates a safe scope to work from. /* * Image loader class. */ $.argo_iml = (function() { var init, open, codeBase, documentBase, _props = this; ... A ton of initialization code which fetches components, scripts, styles, texts using Ajax... } $(document).ready(function(){ $.argo_iml.init(); } }[/code] The problem with that : early on on init, the "object" in question pops a "Please wait" label on the buttons which will be used to trigger it. Please wait lasts until a custom event tells the rest of the page that there is enough of the plugin available for action. Which makes for the "upload image" text sitting there for a while at first, then "Please wait", then again "upload image". Customer would like the "Please wait" text to be there from the very first instant, but how do I do that when I need to fetch both the config file from php, and the texts, for modularity? Texts are external, in a file, for easy translation, config as well for, well.. easy configuration. In advance thank you. [small](Edited by [url=http://www.ozoneasylum.com/user/6755]argo_navis[/url] on 06-30-2011 04:49)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail