sourcebans-pp icon indicating copy to clipboard operation
sourcebans-pp copied to clipboard

DOM Size issue

Open Rushaway opened this issue 3 years ago • 0 comments

What are the steps to reproduce this issue?

  1. Load a page list (comms block or bans) with more than 100 pages
  2. More page you have, more time is needed to load

What happens?

A large DOM will increase memory usage, cause longer style calculations, and produce costly layout reflows.

What were you expecting to happen?

Optimize the code.

Any logs, error output, etc.?

<select onchange="changePage(this,'B','','');">

Any other comments?

Perfect exemple with more than 5k page of comms block below. That start generating a lot of unptimized code.. Some users start complaining their browser have a freeze when they load the page.

What versions of software are you using?

Operating System: nginx/1.20.2 SourceBans++ Version: 1.7.0 Git 1145 PHP Version: 7.4.29 MySQL Version: 7.4.28 Link to your project: https://bans.kzg.gg/index.php?p=commslist Link to a phpinfo() output:

Rushaway avatar Apr 22 '22 06:04 Rushaway