Bladeren bron

Disable over-aggressive caching!

Vijayakrishnan Krishnan 4 jaren geleden
bovenliggende
commit
3badc60907
1 gewijzigde bestanden met toevoegingen van 7 en 9 verwijderingen
  1. 7 9
      public/js/mc.js

+ 7 - 9
public/js/mc.js

@@ -163,9 +163,7 @@ function initFastLoad(_parent = false) {
         $(_a)
             .off('click.fast-load')
             .on('click.fast-load', function () {
-                console.log('ALIX: got click!');
                 showMask();
-                console.log('ALIX: showed mask');
                 fastLoad(this.href, true, true);
                 $('.dropdown-menu[aria-labelledby="practice-management"]')
                     .removeClass('show')
@@ -176,13 +174,13 @@ function initFastLoad(_parent = false) {
     }
 
     // fast cache
-    allAs = $('a[href]:not([onclick]):not([href="#"])');
-    allAs.each(function () {
-        var a = this;
-        $.get(a.href, function (_data) {
-            fastCache[a.href] = _data;
-        });
-    });
+    // allAs = $('a[href]:not([onclick]):not([href="#"])');
+    // allAs.each(function () {
+    //     var a = this;
+    //     $.get(a.href, function (_data) {
+    //         fastCache[a.href] = _data;
+    //     });
+    // });
 
 }