I noticed a few websites i use do that when i open the console. I don’t know if it may cause performance issues but it looks like abusing something. It happens so fast that screen flickers.
I don’t know why browsers allow this and wonder if there is a simple setting to disable that action in somewhere like about:config?
You may want to see if the persistent logs setting helps:
https://firefox-source-docs.mozilla.org/devtools-user/settings/index.html