Last Updated: February 25, 2016
·
1.771K
· ihcsim

Count Total Number of DOM Objects In Your Page

The more objects in your page, the longer it takes to load.

$("*").length;

1 Response
Add your response

Also, you can use a vanilla js version (works almost everywhere):

document.querySelectorAll('*').length

over 1 year ago ·