Register function when entity list in PowerApps portal have loaded completely? Attach your event handlers to entity list loaded event instead of document.ready or onload method of the webpage/ Entitylist - Debajit's
javascript - Why "window.onload" is not working after button click? - Stack Overflow
How to Run a Function When the Page is Loaded in JavaScript?
HTML onload attribute - HTML tutorials - w3resource
The First Event: load | Events in JavaScript | Peachpit
How to show Page Loading div until the page has finished loading? - GeeksforGeeks