On Jan 16, 2008 12:20 AM, Nazgulled <[EMAIL PROTECTED]> wrote: > > Hi, > I'm trying to load JS files (libraries) dynamically at run-time with > jQuery but I'm not being able to...
AFAIK browsers do not support loading external JS after the DOM has loaded. I think this is the reason for the $.getScript("script.js", function(){ do stuff... }); function. I use this in my projects and it works great and is a much cleaner alternative. You could even bind it to an event so it only get's loaded after the event is triggered (very cool). -- Jeroen