Closed emilv closed 7 years ago
Looks like its not working. Thats the code I use:
<div class="ad" data-lazyad data-matchmedia="only screen and (min-width: 1023px)" style="text-align:right;">
<script type="text/lazyad" data-lazyad-code="<script type="text/javascript" language="JavaScript">
glam_affiliate_id = '1659609295';</script>
<script src="https://www8.glam.com/js/widgets/glammedia_logo.js"></script>"></script>
</div>
Nothing is shown ...
Works for me. We have been running this in production for two months. For example:
<div class="ad" data-lazyad data-matchmedia="only screen and (min-width: 980px)">
<script type="text/lazyad" data-lazyad-code=" <div style="clear: both; margin-bottom: 30px;">
<div id="firsttopbanner" class="desktop" style="max-width:980px; width:100%;margin:0 auto;">
<!--JavaScript Tag // Tag for network 1568: Leeads // Website: Leeads AB | Intressesajt | Kimura.se // Page: Kimura.se | Genomgående // Placement: Kimura.se - Panorama #1 - 980x240 (5673186) // created at: May 15, 2015 9:06:10 AM-->
<script language="javascript"><!--
document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/1568/5673186/0/2649/ADTECH;loc=100;target=_blank;grp=[group];misc='+new Date().getTime()+'"></scri'+'pt>');
//-->
</script><noscript><a href="http://adserver.adtech.de/adlink/3.0/1568/5673186/0/2649/ADTECH;loc=300;grp=[group]" target="_blank"><img src="http://adserver.adtech.de/adserv/3.0/1568/5673186/0/2649/ADTECH;loc=300;grp=[group]" border="0" style="max-width:980px; width:100%;" height="240"></a></noscript>
<!-- End of JavaScript Tag --> </div>
</div>
"></script>
</div>
Hmm, strange. How did you include which js-File of the lazy ads? Do you use lazyad-loader.min.js or some of the other files?
We use lazyad-loader.min.js but you need the version that can be built from this patch (the compiled file is not included in this PR, you have to build it yourself).
Okay, I tested it a few hours now, but - depending that I'm not very familiar with github and coding - without any luck. I looked at your site and saw that everything works fine, on my site it didn't. Is it possible that you send me your lazy-ad-package via e-mail? I then will upload it to my site, change the ownership and stuff and hopefully then it will work.
No, sorry. I have submitted this patch because it helps everybody. I'm not interested in providing support. Go ask a local web development company.
ok, but "this patch because it helps everybody" seems not really true, also the patch conlicts with "I'm not interested in providing support". Thanks anyway
A (very) late reply but ad code in an attribute is not something we want to support. Feel free to for the project with this functionality.
To note - we're winding down use of this library as ad providers seem to be finally getting RWD.
Fix #19