window.addEventListener("load", function(){ // .... });
Source
Saving code examples I searched multiple times.
By pt1602, 2021-06-25