80444b67d516cfc76198b8416b8f302aa7dabe25 lrnassar Thu Mar 30 10:18:41 2023 -0700 One more tweak to the speed message, refs #30591 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index f21d384..14db4c9 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5486,37 +5486,36 @@ } }); 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; var skipNotification = localStorage.getItem("hgTracks.hideSpeedNotification"); if (loadSeconds > maxSeconds && !skipNotification) { 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. You can read "+ - "<a href='../FAQ/FAQtracks.html#speed' target=_blank>our display speed FAQ</a> to learn more about how the track selection influences the "+ - "performance of the Genome Browser.<br> "+ - "Also, we try to make the UCSC Genome Browser responsive. If you think the page should be faster and want us to look into "+ - "this particular track combination, you can create a "+ - "short session link with My Data > My Sessions and send the link to genome-www@soe.ucsc.edu.<br>"+ + div.innerHTML = "This page took "+loadSeconds+" seconds to load. We strive to keep "+ + "the UCSC Genome Browser quick and responsive. See our "+ + "<a href='../FAQ/FAQtracks.html#speed' target='_blank'>display speed FAQ</a> 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.<br>"+ "<div style='text-align:center'>"+ "<button id='notifyHide'>Close</button> "+ - "<button id='notifyHideForever'>Close and do not show again</button>"+ + "<button id='notifyHideForever'>Don't show again</button>"+ "</div>"; document.body.appendChild(div); notifBoxShow(); $("#notifyHide").click( function() { $("#notifBox").remove(); }); $("#notifyHideForever").click( function() { $("#notifBox").remove(); localStorage.setItem("hgTracks.hideSpeedNotification", "1"); }); } }