• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ajax:Load some javascript functions later

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dmay,

Do you have a question about this?
Is it an answer to another question in another post?
 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A page which might help, about on-demand javascript :

http://ajaxpatterns.org/On-Demand_Javascript
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic