Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you may be way over complicating the loading of your dfp slots.</p> <p>This code block is the part that is not working I think.</p> <pre><code> /*** Populate DFP ads ***/ var _pageID=$("body").find_class("pageID-"); $.get('/common/modules/ajax-get-list.php',{pageID:_pageID},function(_data){ //alert('data='+_data); if(_data!=''){ var _arrDFPList=_data.split(','); for(var i=0;i&lt;_arrDFPList.length;i++){ //alert('DFP id = '+_arrDFPList[i]); $.get('/common/modules/ajax-get-one.php',{id:_arrDFPList[i]},function(_oneData){ var _arrDFPOne=_oneData.split('&lt;&lt;&lt;&gt;&gt;&gt;'); //alert('id = '+_arrDFPOne[0]+' and content = '+_arrDFPOne[1]); $("#"+_arrDFPOne[0]).append(_arrDFPOne[1]); //$("#"+_arrDFPOne[0]).html(_arrDFPOne[1]); }); } } /* if(_data!=''){ var arrDFPList=_data.split(','); $.get('/common/modules/def-get-one.php',{},function(_oneData){ }); }*/ }); /*** END Populate DFP ads ***/ </code></pre> <p>I think firefox is probably just appending the ad slot display code but failing to evaluate it.</p> <p>I faced a similar issue a few months back where we wanted to bring ads in after load and too keep everything really fast yet simple... the solution I came up with was to create <a href="https://github.com/coop182/jquery.dfp.js" rel="noreferrer">jquery.dfp.js</a>. This plugin allows you to defer the load of DFP entirely until you want it to be loaded you also do not need to pre define all of your slots like you are currently doing... </p> <p>For example here is your current homepage with just the bare essentials required to get your ads displaying using my plugin:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;DFP TEST&lt;/title&gt; &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="https://raw.github.com/coop182/jquery.dfp.js/master/jquery.dfp.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="adunit" id="HP-300x250" data-dimensions="300x250"&gt;&lt;/div&gt; &lt;div class="adunit" id="HP-460x60" data-dimensions="460x60"&gt;&lt;/div&gt; &lt;div class="adunit" id="HP-728x90" data-dimensions="728x90"&gt;&lt;/div&gt; &lt;div class="adunit" id="HP-LAF-160x600" data-dimensions="160x600"&gt;&lt;/div&gt; &lt;div class="adunit" id="HP-RAF-160x600" data-dimensions="160x600"&gt;&lt;/div&gt; &lt;script&gt; $(function () { $.dfp('9358962'); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I think this is a much better way of doing things. If you have any questions let me know.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload