704da00109657134150e13c3791548e747593cb3
braney
  Fri May 19 16:34:23 2023 -0700
dump the cart to trash if the browser took too long to draw

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 7d7b5a7..eb29ae1 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -5483,31 +5483,31 @@
         newListEl.appendChild(newLink);
         $("#downloads > ul")[0].appendChild(newListEl);
         $("#hgTracksDownload").click(downloadCurrentTrackData.showDownloadUi);
     }
     
 });
 
 function hgtWarnTiming(maxSeconds) {
     /* show a dialog box if the page load time was slower than x seconds. Has buttons to hide or never show this again. */
     var loadTime = window.performance.timing.domContentLoadedEventStart-window.performance.timing.navigationStart; /// in msecs
     var loadSeconds = loadTime/1000;
     if (loadSeconds < maxSeconds)
         return;
 
     var skipNotification = localStorage.getItem("hgTracks.hideSpeedNotification");
-    writeToApacheLog("warnTiming "+getHgsid()+" time=" + loadSeconds + " skipNotif="+skipNotification);
+    dumpCart(loadSeconds, skipNotification);
         
     if (skipNotification)
         return;
 
     var div = document.createElement("div");
     div.style.display = "none";
     div.style.width = "90%";
     div.style.marginLeft = "100px";
     div.id = "notifBox";
     div.innerHTML = "This page took "+loadSeconds+" seconds to load. We strive to keep "+
         "the UCSC Genome Browser quick and responsive. See our "+
         "<b><a href='../FAQ/FAQtracks.html#speed' target='_blank'>display speed FAQ</a></b> for "+
         "common causes and solutions to slow performance. If this problem continues, you can create a  "+
         "session link via <b>My Data</b> &gt; <b>My Sessions</b> and send the link to <b>genome-www@soe.ucsc.edu</b>.<br>"+
         "<div style='text-align:center'>"+