Hello Mr Ken,
you did not understand me very well, i do the same thing as you do,
merging many javascript and css files into single files to optimize
resources. but i do not merge all files at once. as user need, i may
dynamically load one or many optimized file, and this does not require
XMLHTTPRequest, just setting up a <script> or <link> correctly and
push it into the head section, this make the browser load the file.
function loadScript(src) {
myScript = document.createElement('SCRIPT');
myScript.src = url
my.type = 'text/javascript';
...
}
after that, you just insert the script into the head section of the
page. you can do the same for css with the link element. additionnaly
you may add a way to set up a callback function that control the
loading state.
-- best regards --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---