aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Ajax:Load some javascript functions later Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Ajax:Load some javascript functions later" Watch "Ajax:Load some javascript functions later" New topic
Author

Ajax:Load some javascript functions later

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
I use ajax in my application it works fine .Currently i load all the javascript function which is used at once.This reduces the initial downloading time .For e.g. i have 20 javascript functions .I need that initially i download say 5 javascript functions and let user start doing what he wants which is accomplished by this 5 function 95% of the time .When user either type or doing nothing then in background i download other functions also.
Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

dmay,

Do you have a question about this?
Is it an answer to another question in another post?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
Originally posted by Ben Souther:
dmay,

Do you have a question about this?
Is it an answer to another question in another post?


I am sorry but didn't understand what you are try to say.
Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

dmay,
Ben wants to ask you whether you are asking a question or not. Reading your post, it is difficult to say if you're asking something. Could you please clarify.


[My Blog]
All roads lead to JavaRanch
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
What i want to know is that how can i download other javascript function in background which is not needed initially.Let say i javascript function in 4 javascript files Initially i download only 2 files when downloading of files this files completed then only download of other files continue.
Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

A page which might help, about on-demand javascript :

http://ajaxpatterns.org/On-Demand_Javascript
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Ajax:Load some javascript functions later
 
Similar Threads
Need ur suggestion for API
two different javascript functions with same name
Downloading file through Servlet.
Close Popup Window after download completes
Alert user before session timeout