Expand my Community achievements bar.

can we avoid flickering using timeout key

Avatar

Level 3

we have a specific requirement and can anyone help on this.

There will be spinner on the web page(specific location) for 2 seconds and within 2 seconds target should return the targeted content to the page. If not, default content should show up automatically and target shouldn't try to replace the default offer after 2 seconds. Adding the below code in DTM under Javascript/Third Party tags section adobe.target.getOffer({

"mbox": "mbox_location2",

"success": function(offers) {

       adobe.target.applyOffer( {

          "mbox": "mbox_location2",

          "offer": offers

       } );

},

"error": function(status, error) {

     if (console && console.log) {

       console.log(status);

       console.log(error);

     }

},

"timeout": 2000

});

or, is there any better approach to get the solution for this requirement.

thanks,

Muthu

0 Replies