Looks like you are using ultra mode 7. I haven't tested with it yet, does it happen without it?
Viewing post in Prevent lag on close menu for MV/Z comments
I'm unable to make a demo, but DKTools seems to be the main issue. I didn't edit the default parameters.
https://www.dropbox.com/scl/fi/vhtk0l9h8b8mlhfs786st/DKTools.js?rlkey=6ai4tenqf5...