Mar articles related to web optimization
Empty Buffer early if your page is in php
What does Configure ETags mean on my website
What is Gzip compression and what is it for
How to add Expires or Cache-Control Header
Use Content Delivery Network on your website
How to reduce the number of DOM elements on my website
How to avoid redirects on your site
A complex page means a lot of bytes to download and also means slow access to the DOM in Javascript.
This denotes the difference if you repeat through 500 or 5000 DOM elements on the page when you want to add an event handler for example.
A high number of DOM elements can be a symptom that there is something that needs to be improved with the markup of the page without the need to affect or remove the content. Are you using nested tables for design purposes? Are you creating "
This is an opportunity to start over and think about markup. For example, the use of
Finding the number of DOM elements is easy, just type in the Firebug console:
document.getElementsByTagName ('*'). length
And how many DOM elements are considered too many? Check out other similar pages that have good bookmarking.
Date update on 2020-11-13. Date published on 2020-11-13. Category: Computer class Author: Oscar olg Fuente: tecnologia