Revision: 2680
https://sourceforge.net/p/mrbs/code/2680/
Author: cimorrison
Date: 2013-02-03 22:28:27 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
Added comments
Modified Paths:
--------------
mrbs/trunk/web/js/edit_entry.js.php
mrbs/trunk/web/js/refresh.js.php
Modified: mrbs/trunk/web/js/edit_entry.js.php
===================================================================
--- mrbs/trunk/web/js/edit_entry.js.php 2013-02-03 14:19:48 UTC (rev 2679)
+++ mrbs/trunk/web/js/edit_entry.js.php 2013-02-03 22:28:27 UTC (rev 2680)
@@ -1374,6 +1374,11 @@
$('input[name="rep_type"]').change(changeRepTypeDetails);
changeRepTypeDetails();
+ <?php
+ // Add an event listener to detect a change in the visibility
+ // state. We can then suspend Ajax checking when the page is
+ // hidden to save on server, client and network load.
+ ?>
var prefix = visibilityPrefix();
if (document.addEventListener &&
(prefix !== null))
Modified: mrbs/trunk/web/js/refresh.js.php
===================================================================
--- mrbs/trunk/web/js/refresh.js.php 2013-02-03 14:19:48 UTC (rev 2679)
+++ mrbs/trunk/web/js/refresh.js.php 2013-02-03 22:28:27 UTC (rev 2680)
@@ -110,7 +110,12 @@
?>
refreshTimer();
}
-
+
+ <?php
+ // Add an event listener to detect a change in the visibility
+ // state. We can then suspend Ajax refreshing when the page is
+ // hidden to save on server, client and network load.
+ ?>
var prefix = visibilityPrefix();
if (document.addEventListener &&
(prefix !== null) &&
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits