Jump to content

Recommended Posts

Posted (edited)

I have more than 10 call OA_show using SPC.

It was not so easy changing from spc to async and back during tests, so I put litttle helper function fo it:

so now I switching between methods in one place.

comment spc call:

<!--script type="text/javascript" src="http://DOMAIN/delivery/spcjs.php?id=1&amp;block=1&amp;charset=UTF-8"></script-->

redefine QA_show:
<script>
function OA_show(zone_name){
document.write('<ins data-revive-zoneid="'+OA_zones[zone_name]+'" data-revive-id="UNIQUE_ID"></ins>');
}
</script>

add async script
<script async src="//DOMAIN/delivery/asyncjs.php"></script>

 

it was fine for me, may be it can help you too )

Edited by gorman
some addon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...