Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8446055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:49:33+00:00 2026-06-10T09:49:33+00:00

I was wondering whether use jquery´s getScript or not. I have a jQuery plugin

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:49:35+00:00Added an answer on June 10, 2026 at 9:49 am

    There will be disadvantages to getting an external script.

    i.e.
    ONE HTTP request

    if($.browser.msie){
     //minifed code
    }
    

    TWO HTTP requests

     if($.browser.msie){
     $.getScript('link to minified script');
    }
    

    Your browser can only generally cope with 2 http requests at any one time. So from a performance point of view, the first will be faster.

    further explanation

    with getScript, IE users will have a smaller request, (-the size of your “minified code”). But everyone else will have to download the external script everytime (+ the size of your external script * number of page requests) + delay in response due to extra HTTP request.

    with the minified code everyone will have to download your size of your minifed code (+minified code size).

    Presuming your minifed code is say 5K and is accessed 10 time that means:

    IE GetScript:

    (5K * 10) + performance of using second HTTP request = 50K+

    Non-IE

    0

    ////////////////////////////////////////////////////////

    IE nonGetScript

    5K

    non-IE

    5K

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering whether you could use a trick of the compiler to include
I'm wondering whether or not there are any restrictions during HBase minor/major compactions .
Hey, I was wondering whether there is a way to use FlexScroll (JavaScript custom
I am just wondering whether that is a correct syntax in JQuery : var
I'm using the excellent jquery.validation plugin by Jörn Zaefferer and I was wondering whether
Currently i am wondering whether or not to use a MySQL DB to provide
I was wondering whether or not it is necessary to use <link rel=stylesheet type=text/css
I'm working on an ajax application that makes extensive use of jQuery. I'm not
I wondering whether use a webView to create a complex text area done with
I am wondering whether I can use the this keyword inside a C# lambda,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.