Front-end page performance issues

h5 page performance optimization

A casual question, I would like to know what common optimization ideas are available on a page where dom operations are very frequent.

The number of

tags may be in the order of 100-1000, and it is more frequent to increase and delete

.

there is also a small question: is there a difference in performance between the clone node insert page and the new node insert page? Which is the preferred method for dynamically inserting nodes?

Mar.28,2021

solution:
1, dom reuse
2, avoid page rearrangement when operating dom
3, introduce virtual dom library


use vue, will not frequently operate dom.

Menu