SHOW:
|
|
- or go back to the newest paste.
| 1 | In order to pause Taboola before consent, | |
| 2 | - | please add the amp attribute data-block-on-consent to the Taboola tag. |
| 2 | + | please update the Taboola script type to text/clickiocmp. |
| 3 | - | https://clickio.gyazo.com/6b67f411727e7ebeb94eb93de422d9d3 |
| 3 | + | Add the async attribute to the script tags that have a src attribute. |
| 4 | https://clickio.gyazo.com/ab49c50fb640d9b99795b84acff5a2f2 | |
| 5 | - | Example: |
| 5 | + | https://clickio.gyazo.com/a0246ba7b16e3e0915e522c6a8249081 |
| 6 | ||
| 7 | - | <amp-embed height='100' layout='fixed-height' type='taboola' data-publisher='cronista' |
| 7 | + | |
| 8 | - | data-mode='alternating-thumbnails-a-amp' data-placement='Below Article Thumbnails AMP' |
| 8 | + | Examples: |
| 9 | - | data-target_type='mix' data-article='auto' data-url='' data-block-on-consent> |
| 9 | + | |
| 10 | - | </amp-embed> |
| 10 | + | <script async type="text/clickiocmp" src="//cdn.taboola.com/libtrc/cronista/loader.js" id="tb_loader_script"></script> |
| 11 | ||
| 12 | ------ | |
| 13 | ||
| 14 | <script type="text/clickiocmp"> | |
| 15 | window._taboola = window._taboola || []; | |
| 16 | _taboola.push({ article: 'auto' });
| |
| 17 | !function (e, f, u, i) {
| |
| 18 | if (!document.getElementById(i)) {
| |
| 19 | e.async = 1; | |
| 20 | e.src = u; | |
| 21 | e.id = i; | |
| 22 | f.parentNode.insertBefore(e, f); | |
| 23 | } | |
| 24 | }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/cronista/loader.js', 'tb_loader_script');
| |
| 25 | if (window.performance && typeof window.performance.mark == 'function') {
| |
| 26 | window.performance.mark('tbl_ic');
| |
| 27 | } | |
| 28 | </script> | |
| 29 |