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 8962407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:07:05+00:00 2026-06-15T16:07:05+00:00

I use jQuery in my page, when I use Chrome developer tool, I found

  • 0

I use jQuery in my page, when I use Chrome developer tool, I found jQuery18007779947370290756 and jQuery object in Console. jQuery18007779947370290756 only contains a few methods. jQuery contains a lot more methods. so what is jQuery18007779947370290756 ? I do not have the url of the page, since it is internal page. the lib I include is just jquery-1.8.0.min.js and jquery-ui-1.8.23 and
no JSONP calls.

It looks like if I added a global event 'beforeunload' to window object. and it is stored in window[expando]. However if I added some events to other DOM object such as button, and they are stored in jQuery.cache.
here is the screen shot form jQuery.cache and window[jQuery1800xxxxxxxxxxxxxxxx]
I am not sure why the guid for that 2 click events are both 8. those 2 click events are binded to 2 buttons. and click event handler are the same function.

enter image description here

  • 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-15T16:07:06+00:00Added an answer on June 15, 2026 at 4:07 pm

    jQuery adds this property to elements when you store data on them. As this property is on the window element, somewhere in your code you’re doing something equivalent to:

    $(window).data('something', 1);
    

    Note that jQuery events also uses the data module behind the scenes, so this could also be because you’re adding an event to the window object.

    For normal nodes (i.e. elements with a nodeType property), this value is set to a GUID (data.js#61), and the data you want to store on that object is stored in a global jQuery cache.

    However the window element does not have a nodeType property, so it goes down the route of I’m a plain JS object; which leads the data to be stored directly on the object itself (which, in the case of window, may be a bug with jQuery).

    The choice of cache location (global or on the object) is made in L39-45 in data.js:

    // We have to handle DOM nodes and JS objects differently because IE6-7
    // can't GC object references properly across the DOM-JS boundary
    isNode = elem.nodeType,
    
    // Only DOM nodes need the global jQuery cache; JS object data is
    // attached directly to the object so GC can occur automatically
    cache = isNode ? jQuery.cache : elem,
    

    In the case of normal DOM elements, the value is assigned a GUID in data.js#61:

    elem[ internalKey ] = id = jQuery.deletedIds.pop() || jQuery.guid++;
    

    But in the case of normal JS objects (and window in this case), the object is built in 68 – 74:

    cache[id] = {};
    
    // Avoids exposing jQuery metadata on plain JS objects when the object
    // is serialized using JSON.stringify
    if (!isNode) {
        cache[id].toJSON = jQuery.noop;
    }​
    

    The weird value is jQuery.expando, which is defined in data.js#14, and is initialized to:

    "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" )
    

    (basically, “jQuery”, followed by the jQuery version with “.”‘s removed (1800 in your case), and then a random number).

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

Sidebar

Related Questions

I was trying to use jQuery's page scroll inside some pages and could successfully
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.
When I use JQuery's autocomplete and hardcode the array values in the page it
I'm trying to use jQuery to intercept control-A keypresses on my web page, like
I would like to .get a page and then use jquery to find elements
When i use jquery's $.post ajax function, page freezes for 2-3 seconds and then
I use a jquery calendar and a flash in the same page.. What happens
I want to use this jquery library for my web page. I am copying
I want to use this jQuery gallery more than once on my page: http://workshop.rs/2010/07/create-image-gallery-in-4-lines-of-jquery/
I want to use this jquery glow plugin in my page. (DEMO) and 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.