Fetch on resize: "rendered" keeps track of already fetched banners
[openx] / 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!