5727669e8a2fa6a29614240442aa3d85812d2b9c
max
Wed Oct 16 09:40:01 2024 -0700
again tiny change to time warning message, no redmine
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 34b0ccd..799c9ec 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -5924,32 +5924,33 @@
opt.appendChild(newListEl);
$("#hgTracksDownload").on("click", downloadCurrentTrackData.showDownloadUi);
}
}
if (typeof showMouseovers !== 'undefined' && showMouseovers) {
convertTitleTagsToMouseovers();
}
});
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;
+ alert(loadSeconds+"<"+maxSeconds);
if (loadSeconds < maxSeconds)
return;
var skipNotification = localStorage.getItem("hgTracks.hideSpeedNotification");
dumpCart(loadSeconds, skipNotification);
if (skipNotification)
return;
- msg = "This page took "+loadSeconds+" seconds to load. We strive to keep "+
- "the UCSC Genome Browser quick and responsive and load times under "+maxSeconds+" seconds. See our "+
+ msg = "This page took "+loadSeconds+" seconds to load, more than "+maxSeconds+" seconds. We strive to keep "+
+ "the UCSC Genome Browser quick and responsive. See our "+
"display speed FAQ for "+
"common causes and solutions to slow performance. If this problem continues, you can create a "+
"session link via My Data > My Sessions and send the link to genome-www@soe.ucsc.edu.";
notifBoxSetup("hgTracks", "hideSpeedNotification", msg);
notifBoxShow("hgTracks", "hideSpeedNotification");
}