#9320 closed enhancement (wontfix)
Load multiple scripts with $.getScript
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I would like to request a feature if possible.
I would like a way to load multiple scripts at once and fire 1 single function when all the scritps have been loaded. Right for example:
$.getScript('js/script.js',function(){
execute function
});
takes a string as url and loads only one script. would it be possible to have the function also take an array of strings as an argument e.g:
$.getScript(['js/script.js','js/script1.js','js/script2.js'],function(){
execute function
});
and execute only one function when all the scripts have been loaded.
Thank you
Change History (3)
comment:1 Changed 12 years ago by
Component: | unfiled → ajax |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
comment:2 follow-up: 3 Changed 11 years ago by
Any explanation why this was closed. Is there some obvious better way of obtaining the desired effect.
comment:3 Changed 10 years ago by
Replying to anonymous:
Any explanation why this was closed. Is there some obvious better way of obtaining the desired effect.
I support this request. This is a function I would also like.
Feature request filled:
https://gist.github.com/977792
demo:
http://jsfiddle.net/rwaldron/jgjHy/
;)