I was wondering whether use jquery´s getScript or not.
I have a jQuery plugin that I need to include in my site, but I am unsure what to do and I am wondering if there is a difference between these approaches:
In my case, I have to include a rather big script, but only for IE browsers. At this moment I do it like this:
if($.browser.msie){
//minifed code
}
Now I was wondering if this:
if($.browser.msie){
$.getScript('link to minified script');
}
would have any advantages/disadvantages? Or if it is more or less the same thing?