Reduce JS content
Reviewing one site made with brizy we found this issue:
- Too much DOM size: 4139 elements.
- Too much static content
We cannot edit the JS file because of the size. How can we improve this?
Thanks.
-
We install lite speed cache and now DOM size is 2138, anyway to keep improving? its too much yet.
0 -
Hi
DOM size is predominantly a function of the length of the page. The longer the page, the higher the DOM size normally is. For example, here is a comparison of two Brizy Cloud websites
- https://www.brizy.io/ DOM size: 4664 elements.
- https://smartlearning.brizy.site/ DOM size: 808 elements.
The primary difference between the two is that https://www.brizy.io/ has a long homepage with 12 sections whereas https://smartlearning.brizy.site/ has a shorter homepage with 6 sections.
DOM size can also depend on the efficiency of the builder. For the same length of a page, two builders may have slightly different DOM sizes.
Both the factors are difficult to change. The length of the page cannot be reduced. A builder cannot improve its code efficiency overnight as well; Making the code more and more efficient is an ongoing effort.
0
Please sign in to leave a comment.
Comments
2 comments