06-28-2023 01:57 PM - edited 07-25-2023 10:25 AM
When a webpage is loading the hardcoded site number first appears before the Invoca dynamic number replacement swaps it with an Invoca number, creating a flickering effect.
Customers using the Invoca Tag for Dynamic Number Insertion on their webpages.
This solution will require development on the part of the customer within their own code base.
function showNumber(){ var elements = document.querySelectorAll(".InvocaNumber"); elements.forEach(function (el) { el.style.opacity = 1; }) // or this code if your site uses JQuery. $(".InvocaNumber").animate({'opacity': 1}, 250); }; options.onComplete = showNumber; setTimeout(function(){ showNumber(); }, 3000); return options;
Number flicker can be caused by the asynchronous loading of the Invoca Tag JavaScript on customer sites. This means that JavaScript commands run one after the other, and the Invoca Tag is set to run after the commands that load the phone number on the webpage.