Title: Plugin not rendering scripts when accepted
Last modified: July 27, 2022

---

# Plugin not rendering scripts when accepted

 *  [lightyearsdev](https://wordpress.org/support/users/lightyearsdev/)
 * (@lightyearsdev)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-rendering-scripts-when-accepted/)
 * Hi all.
    Love the plugin, but I’m noticing it’s not reliably rendering the scripts
   when I click accept once refreshed.
 * Sometimes it works on the index page in an incognito window.
 * It’s possible it’s interacting weirdly with SWUP, an ajax page loader we have
   on the site?
    Or perhaps it’s storing the ‘declined’ value somewhere else? (I’m
   checking Inspector > Application > cookies < [the site])
 * I’m basically wanting to show a notice on the donation page if they don’t have
   cookies active (as they’re necessary). But checking for a custom cookie that’s
   generated when the blocked scripts appear isn’t working (as the blocked scripts
   aren’t being added back).
 * I was also trying to use the cn_cookies_accepted(); function, but it kept saying
   it couldn’t find it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-rendering-scripts-when-accepted%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Plugin not rendering scripts when accepted’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [render](https://wordpress.org/support/topic-tag/render/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [script blocking](https://wordpress.org/support/topic-tag/script-blocking/)

 * 0 replies
 * 1 participant
 * Last reply from: [lightyearsdev](https://wordpress.org/support/users/lightyearsdev/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-rendering-scripts-when-accepted/)
 * Status: not resolved