I was wondering if jQuery getScript should be used or not.
I have a jQuery plugin that I need to include in my site, but I'm not sure what to do, and I am wondering if there is a difference between these approaches:
In my case, I have to include a fairly large script, but only for IE browsers. At this moment, I am doing it like this:
if($.browser.msie){
}
Now I was wondering if this:
if($.browser.msie){
$.getScript('link to minified script');
}
will have any advantages / disadvantages? Or if it is more or less the same thing?
source
share