Fetch on resize: "rendered" keeps track of already fetched banners
authorKai Moritz <kai@juplo.de>
Thu, 28 Feb 2013 16:08:38 +0000 (17:08 +0100)
committerKai Moritz <kai@juplo.de>
Thu, 28 Feb 2013 16:34:18 +0000 (17:34 +0100)
jquery.openx.js

index a9827af..66eb110 100644 (file)
@@ -32,6 +32,7 @@
   min_width = {},
   max_width = {},
   width,
+  rendered = {},
   queue = [],
   output = [];
 
             if (match)
               max_width[id] = match[1];
           }
+          rendered[id] = false;
         }
       });
     }
       if (width >= min_width[id] && width <= max_width[id]) {
         queue.push(id);
         src += escape(id + '=' + OA_zones[slots[id].id] + "|");
+        rendered[id] = true;
       }
     }
     src += '&nz=1'; // << We want to fetch named zones!