Jump to content

Docent

Approved members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Docent

  1. Hi,

     

    I'd like to reactivate this question. I'm using Site - Variable and need to move this to async implementation. This is how it looks in synchronous spc:

    <script type="text/javascript" src="xxx/www/delivery/spcjs.php?id=3&AllowHighAds=false"></script>
    

    I tried your suggestions, i.e.:

    <ins .... data-revive-source="AllowHighAds=false"></ins>
    <ins .... data-revive-AllowHighAds="false"></ins>
    

    and even

    <ins .... AllowHighAds="false"></ins>
    

    or calling asyncjs with parameter:

    <script async src="xxx/www/delivery/asyncjs.php?AllowHighAds=false"></script>
    

    None of these work :( I can't find any documentation as well. Please advise.

     

    Thanks!

     

    edit:

     

    Seems that site variables are case sensitive but you cannot pass uppercase letters using new async tags. So this is why it didn't work for me. After changing the variable name to all-lowercase it works fine using this method:

     

    data-revive-allowhighads="false"
    

     

    Also worth mentioning is that you should only specify given variable once on a page. Previously you passed variables in the page head using spcjs.php call so it was impossible to overwrite, now you pass them using invidual zone tags but they actually have global scope (for all zones on a page). Quite confusing actually... You can easily overwrite the variable by some different zone.

×
×
  • Create New...