Might be worth trying with Softr’s own block-loaded or get-records events as shown here - Event Listener for Dynamic Lists (React Version) - #2 by jstrauss, I’ve generally had more luck with those instead of DOMContentLoaded and onload.
Not sure if and how it works for logged in users, but hopefully a direction to explore