wbs1ag
Last Updated: February 25, 2016
·
1.312K
· 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

5655

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

document.querySelectorAll('*').length

over 1 year ago ·