Title: Java script does not start after approval
Last modified: November 30, 2020

---

# Java script does not start after approval

 *  Resolved [alex72b](https://wordpress.org/support/users/alex72b/)
 * (@alex72b)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-does-not-start-after-approval%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/#post-13727823)
 * Hi [@alex72b](https://wordpress.org/support/users/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 Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/#post-13727863)
 * I’ve posted a possible solution, but it’s currently held for moderation.
 *  Thread Starter [alex72b](https://wordpress.org/support/users/alex72b/)
 * (@alex72b)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/#post-13728080)
 * 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 Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/#post-13729088)
 * [@alex72b](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-does-not-start-after-approval/#post-13729088)
 * Status: resolved