'hashchange', onHashChange);

  function onLoad() {
    const onLoadTimer = tr.b.Timing.mark('TraceImport', 'onLoad');
    timelineViewEl = document.querySelector('tr-ui-timeline-view');
    timelineViewEl.globalMode = true;

    selectEl = document.createElement('select');
    // Don't hide the right hand controls ever. Bit of a hack since changing
    // flex layout in timelineViewEl can break other trace viewer use cases.
    selectEl.style.maxWidth = 'calc(100vw - 700px)';
    timelineViewEl.leftControl