wiley / madgex-lazy-ads

Deliver synchronous ads asynchronously, without modifying the ad code. Also, conditionally load ads for responsive websites using a media query or the ad container's dimensions.
MIT License
656 stars 42 forks source link

<script> tag inside lazy <script> tag #14

Closed baszero closed 9 years ago

baszero commented 9 years ago

Hi, some advertisers provide just a single line for inserting their ads from their adservers, e.g.

<script language="javascript" type="text/javascript" src="..."></script>

At a first try this did not work out, the error was "$ is not defined". Do I have to replace the one-liner by something else like a function calling the script of the advertiser?

Thanks for any hints.

kristian-b commented 9 years ago

Hello,

on my page I have single line ads too and lazy-ads is working fine. I don't think there is any difference.

baszero commented 9 years ago

Ok thanks a lot!