Typically the method is to use:
window.addEventListener('load', function() {
});
Although this post a challenge if the plugin is loaded through ajax...since then the onload event has fired.
document.readyState
is the closest thing I know to check if a page is loaded, yet this doesn't include fetched elements.
The link is for jQuery, and it doesn't include fetch.