Hi,

>     function addScript( url, doc ) {
>         doc = doc || document;
>         var script = doc.createElement( 'script' );
>         script.type = 'text/javascript';
>         script.charset = 'utf-8';
>         script.src = url;
>         doc.getElementsByTagName('head')[0].appendChild( script );
>     }

There are Safari Versions that don't execute scripts that you try to load like 
that. I wasn't shure about styles. I did it with a XMLHttpRequest, because I 
didn't have that version at hand.

> Just to be clear, I wasn't disparaging jsPax!

No Problem.

> It just depends on whether you need a full-featured package system or a
> simple loading function.

Well, jsPax is very small - it was designed to be. It might be that you have 
problems getting a cross-browser script-loader that is much smaller.

Christof

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to