Add setting to collapse / fold Properties across all notes by default

A few days ago, I was trying to add code to my vault – through JavaScript Init – to auto-fold properties in Source Mode.
I deactivated the script since.

Can you confirm you are able to register the ON and OFF fold states of individual files across multiple sessions (even after quitting and re-starting Obsidian)?