    QVBoxLayout *layout = new QVBoxLayout();
    layout->setMargin(50);
    layout->setSpacing(30);
  
    QWidget *alerts_widget = new QWidget;
    QVBoxLayout *alerts_layout = new QVBoxLayout;
    alerts_layout->setMargin(0);
    alerts_layout->setSpacing(30);
    alerts_widget->setLayout(alerts_layout);
    alerts_widget->setStyleSheet("background-color: transparent;");
  
 
</s> remove   QVBoxLayout *layout = new QVBoxLayout();
 </s> add   QVBoxLayout *layout = new QVBoxLayout; </s> remove TermsPage::TermsPage(QWidget *parent) : QFrame(parent){
 </s> add void TermsPage::showEvent(QShowEvent *event) {
  // late init, building QML widget takes 200ms
  if (layout()) {
    return;
  }
 </s> remove   // setup labels for each alert
  QString json = QString::fromStdString(util::read_file("../controls/lib/alerts_offroad.json"));
  QJsonObject obj = QJsonDocument::fromJson(json.toUtf8()).object();
  for (auto &k : obj.keys()) {
    QLabel *l = new QLabel(this);
    alerts[k.toStdString()] = l;
    int severity = obj[k].toObject()["severity"].toInt();

    l->setMargin(60);
    l->setWordWrap(true);
    l->setStyleSheet("background-color: " + QString(severity ? "#E22C2C" : "#292929"));
    l->setVisible(false);
    alerts_layout->addWidget(l);
  }

  alerts_layout->addStretch(1);

 </s> add  </s> remove   //setup->setFixedSize(700, 700);
 </s> add 
  QWidget *alerts_widget = new QWidget(this);
  alerts_layout = new QVBoxLayout;
    QVBoxLayout *layout = new QVBoxLayout();
    layout->setMargin(50);
    layout->setSpacing(30);
  
  QWidget *alerts_widget = new QWidget(this);
  alerts_layout = new QVBoxLayout;
  QWidget *alerts_widget = new QWidget(this);
  alerts_layout = new QVBoxLayout;
    alerts_layout->setMargin(0);
    alerts_layout->setSpacing(30);
    alerts_widget->setLayout(alerts_layout);
    alerts_widget->setStyleSheet("background-color: transparent;");
  
keep keep keep keep replace replace keep keep keep keep keep
 UI: fast startup (#20781)

* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/widgets/offroad_alerts.cc