Timeline: how to hide it before it's shown

Hi, I am using CesiumJS 1.116.
What syntax to use to know precisely when the timeline is ready? I want the timeline to load and not show.

I am currently hiding the timeline with
viewer.timeline.container.style.display = 'none';

But because I don’t hide it at the right time, it is shown before being hidden. I want the timeline to not appear at all.

In the viewer options I can’t do this
timeline: false

because later I want the timeline to be shown.

I show the timeline with

viewer.timeline.container.style.display = 'block';
viewer.timeline.resize();

Any suggestions? Thanks!

This works!

function onViewerReady() {
    viewer.timeline.container.style.display = 'none';
    viewer.scene.postRender.removeEventListener(onViewerReady);
}
viewer.scene.postRender.addEventListener(onViewerReady);

If there is a timeline ready event, let me know.