Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created March 26, 2012 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kdabir/2205430 to your computer and use it in GitHub Desktop.
Save kdabir/2205430 to your computer and use it in GitHub Desktop.
get jquery cache size
function lengthOf(object) {
var element_count = 0;
for (e in object) { element_count++; }
return element_count;
}
function _jqCacheSize(){return lengthOf($.cache);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment