Closed clement-bongibault closed 10 years ago
We use .innerHTML
and HTML5 specifies that a
. Find a better way—perhaps with an async script loader. I'd probably base it on device width. In any case you want to avoid repeating the execution when someone resizes the viewport. Only run it once.<script>
tag inserted via innerHTML should not execute
<script>
window.my_config_var = {play_button:1, show_status:0};
if (Response.deviceW() >= 980) jQuery.getScript('http://www.example.com/partner.js');
</script>
Hello,
I'm trying to use responseJS to integrete advertising script like :
First Inline script seems to work, but distant javascript call isn't work.
Is-it a bug, or something that else ?
Thanks for your replies.