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

  • SEARCH
  • Home
  • 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 373919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:21:17+00:00 2026-05-12T14:21:17+00:00

Simple question. If you include jQuery in a page of HTML, is there any

  • 0

Simple question. If you include jQuery in a page of HTML, is there any initialization overhead before one uses any jQuery functions.

  • 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-05-12T14:21:18+00:00Added an answer on May 12, 2026 at 2:21 pm

    By virtue of simply including the jQuery script, you do indeed get some overhead. jQuery builds itself up inside an immediately executed function.

    In 1.3.2 the biggest things it does are for IE support:

    • creates a temporary form element with one input element inside it, to check to see if the browser returns elements by name when querying by getElementById – [Source]
    • creates a temporary div with a empty comment node in it, to check to see if the browser returns only elements when doing getElementsByTagName("*") – [Source]
    • creates a temporary anchor element, to see if getAttribute returns normalized href attributes – [Source]
    • creates a temporary div with this html in it:

      '   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'
      

      and proceeds to read off a bunch of characteristics from that structure. This is to build the jQuery.support object that was created in lieu of deprecating jQuery.browser – [Source]

    It also does some smaller things like:

    • creates a whole whack of regular expression objects
    • parses navigator.userAgent for some deprecated browser sniffing support
    • gets the current Date from the system (+new Date)

    Keep in mind all this barely adds up to any noticeable lag, as others have suggested.

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

Sidebar

Related Questions

Simple question, but one that I've been curious about...is there a functional difference between
Simple question. Why use require_once to include classes that you use within a file?
Very simple question, I made the following program : #include <stdlib.h> int main(int argc,
Simple question - I've got a bucketload of cruddy html pages to clean up
Simple question that keeps bugging me. Should I HTML encode user input right away
Simple question, spurred on by the removal of the target attribute in HTML 4.0
This is undoubtedly a simple question. I used to do this before, but it's
jQuery uses the CSS display property under the hood of the simple show() and
In my page there is two links, register and login. The important one now
Simple and fast question: I need the jquery library for a site, so I

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.