• Resolved alex72b

    (@alex72b)


    First: great plugin.

    But I have a problem. I blocked a java script from third party via integration by entering part of the URL. That’s working.

    After a visitor has consented to marketing cookies, the java script is not executed. The java script only works after a manual refresh of the page. Is there a solution for this without manual refresh?

    I have now helped myself by adding a button as a placeholder that reloads the page with one click. But that’s not very nice.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Hi @alex72b,

    You have blocked the widget.min.js file, but not the inline script that is calling functions from that file. Because of this, this inline script is not fired when the user consents. The widget.js file runs, but there is no execution code in this file, so nothing actually happens.

    This is the inline script that fires functions from the widget.min.js file:

    <script type="text/javascript">!function(i){window.setTimeout(function(){"undefined"===typeof fupa_widget_domain?--i.t>0&&window.setTimeout(arguments.callee,i.i):i.f()},i.i)}({i:20,t:100,f:function(){live_widget(8239)}});</script>

    To block this inline script, you can add also
    live_widget

    to the script center.

    When the user consents, the blocked inline script will execute, and the widget should appear.

    If it does not work out of the box we might need to add a dependency to ensure the correct loading order, but in most cases this should do it.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I’ve posted a possible solution, but it’s currently held for moderation.

    Thread Starter alex72b

    (@alex72b)

    Hello Rogier,

    I have tried to block the script (live_widget) before. So far I had only tried that as an asynchronous script.

    Now that you’ve suggested a solution, I’ve tried again as part of the URL. And it seems like it actually works.

    Many thanks.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    @alex72b great, thanks for the update!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Java script does not start after approval’ is closed to new replies.