For this test i picked up your idea to listen to onfocus.
obsolete:
Code:
Page Load Time to Status Bar 7.09.05 (fail) [hp] (d.1 l.3)
new:
Code:
[Patterns]
Name = "Status Bar: Add Page Load Timer 9.03.03 (fail) [hp] (d.1 l.3)"
Active = TRUE
URL = "$TYPE(htm)$TST(keyword=*.i_level:[345].*)$SET(jsVarsB=$TST(jsVarsB=(*$toDo: )\1(0|$SET(3=+)([^,]+)\2) \4)\1\2\316\4)PrxFail$TST()"
Limit = 1
Match = "$STOP(This filter isn't supposed to get that far)"
Name = "Status Bar: Add Time 9.03.01 (fail) [ozo] (o.1 l.4) TEST"
Active = FALSE
URL = "$TYPE(htm)$TST(keyword=*.i_level:[345].*)$SET(jsVarsT=$GET(jsVarsT)_sbTime: "$DTM(H:m:s)", )PrxFail$TST()"
Limit = 1
Match = "$STOP(This filter isn't supposed to get that far)"
Name = "Status Bar: Add Last-Modified or ETag 9.03.03 (fail) [sd] (o.1 l.4) TEST"
Active = FALSE
URL = "$TYPE(htm)(^$TST(keyword=*.(a_title|i_level:[123]).*))($IHDR(Last-Modified:( ) ???, \1(:|)?? GMT)|(^$TST(\1=*))$IHDR(ETag:( ) (^PrxMsg)?*)$SET(1=ETag))$SET(jsVarsT=$GET(jsVarsT)_sbMod: "\1", )PrxFail$TST()"
Limit = 1
Match = "$STOP(This filter isn't supposed to get that far)"
old:
Code:
// Page Load Timer Part IV. Declare the function.
inStatus : function () {
window.defaultStatus = prxO.oAss.asLdStop;
if (!window.status || status.prox) window.status = window.defaultStatus;
}
new:
Code:
// // Page Load Timer Part IV. Declare the function.
// inStatus : function () {
// window.defaultStatus = prxO.oAss.asLdStop;
// if (!window.status || status.prox) window.status = window.defaultStatus;
// }
// Set our own status if needed.
inStatus : function () {
window.defaultStatus = prxO.oAss.asStatus;
if (!window.status || status.prox) window.status = window.defaultStatus;
}
old:
Code:
// Page Load Timer Part III. - hpguru
if (prxO.oSet.$toDo & 16) {
prxO.oAss.asLdStop = "Load Time (sec): " +
pxSplit + (new prxO.oAss.asDate().getTime() - prxO.oAss.asLdStart) / 1000;
if (prxO.oiIsOp) PrxRLsetTimeout(prxO.oInt.inStatus, 0);
else prxO.oInt.inStatus();
}
new:
Code:
// // Page Load Timer Part III. - hpguru
// if (prxO.oSet.$toDo & 16) {
// prxO.oAss.asLdStop = "Load Time (sec): " +
// pxSplit + (new prxO.oAss.asDate().getTime() - prxO.oAss.asLdStart) / 1000;
// if (prxO.oiIsOp) PrxRLsetTimeout(prxO.oInt.inStatus, 0);
// else prxO.oInt.inStatus();
// }
// Test start
// Prepare for our status additions.
prxO.oAss.asStatus = "";
// Page Load Timer Part III. - hpguru
if (prxO.oSet.$toDo & 16)
prxO.oAss.asStatus += "Load Time (sec): " +
pxSplit + (new prxO.oAss.asDate().getTime() - prxO.oAss.asLdStart) / 1000;
// Time to status bar. - OZO
if (prxO.oSet._sbTime) prxO.oAss.asStatus += " ~" + prxO.oSet._sbTime;
// Last-Modified or ETag to status bar.
if (prxO.oSet._sbMod) prxO.oAss.asStatus += " [" + prxO.oSet._sbMod + "]";
if (prxO.oAss.asStatus) {
if (prxO.oiIsOp) PrxRLsetTimeout(prxO.oInt.inStatus, 0);
else prxO.oInt.inStatus();
prxO.oInt.inEventAdd(window, "focus", prxO.oInt.inStatus, true);
}
// Test end
old:
Code:
function miShow(e) {
if (e != 1 && !prxO.oMen.meCheck(e)) return;
if (prxO.oSet.$toDo & 16) prxO.oInt.inStatus();
if (prxO.oMen.meImg.style.visibility == "visible") return;
prxO.oInt.inSetCSS(prxO.oMen.meImg, "left: " +
((window.pageXOffset || prxO.oDoc.scrollLeft) +
prxO.oDoc.clientWidth - prxO.oAss.asWidth - 50) +
"px; top: " + ((window.pageYOffset || prxO.oDoc.scrollTop) +
prxO.oDoc.clientHeight - 50) + "px; visibility: visible;");
}
new:
Code:
function miShow(e) {
if (e != 1 && !prxO.oMen.meCheck(e)) return;
// if (prxO.oSet.$toDo & 16) prxO.oInt.inStatus();
if (prxO.oMen.meImg.style.visibility == "visible") return;
prxO.oInt.inSetCSS(prxO.oMen.meImg, "left: " +
((window.pageXOffset || prxO.oDoc.scrollLeft) +
prxO.oDoc.clientWidth - prxO.oAss.asWidth - 50) +
"px; top: " + ((window.pageYOffset || prxO.oDoc.scrollTop) +
prxO.oDoc.clientHeight - 50) + "px; visibility: visible;");
}
Tested in:
Fx3 -> WFM
Maxthon (tabbed, IE6) -> WFM
O9 -> Still odd status handling, but not worse than before.