Count Total Number of DOM Objects In Your Page
The more objects in your page, the longer it takes to load.
$("*").length;
Written by Ivan Sim
Related protips
1 Response
Also, you can use a vanilla js version (works almost everywhere):
document.querySelectorAll('*').length
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#