Notice if everything is loaded

Hi all.

my question is: Is there a way method or webix.object where I can give a notice that everything on the browser page has been complete loaded? I don’t mean the DOM! Cause some processes loading from server and it takes time!

I can use this:

window.onload = function() { console.log('Loaded'); };

or this:

document.addEventListener('DOMContentLoaded', ()=> {
    console.log('Loaded');
});

or this:

document.addEventListener("readystatechange", (event) => {
  if (event.target.readyState === "interactive") {
    initLoader();
  } else if (event.target.readyState === "complete") {
    initApp();
  }
});

But it’s all to early! Is there a programming procedures to achieve this?

There are running several processes like ajax, loading images, and loading extern editor etc. and some processes are loading earlier some later. I want to enable some buttons and tabs after all is set at the right place…

Maybe somebody got similar problems… ?!

Michael