Title: Javascript potentially not loading
Last modified: September 4, 2024

---

# Javascript potentially not loading

 *  Resolved [giuseppehex](https://wordpress.org/support/users/giuseppehex/)
 * (@giuseppehex)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/javascript-potentially-not-loading/)
 * Hey,
 * Half way through a test it looks like the JavaScript for the plugin has stopped
   working. 
   We were using custom JavaScript events to do some tracking using the
   provided `nab.convert(x, x)` function. However, from the console I can now see
   the following errors:– `Uncaught ReferenceError: nab is not defined`– `TypeError:
   nab.convert is not a function`
 * We’re not running any caching or JavaScript optimisation plugins at the moment
   on the site and we’ve got the server caching settings disabled. We are running
   the DNS via CloudFlare and I have tried disabling our cookie plugin but no luck
   either.
   I’m a little stumped as to why this would stop working. We can see that
   the events stopped being tracked on the 16th August, if that is of any relevance,
   but as far as I can see from our side, no one made any changes to the test, the
   pages/variants, and we hadn’t performed any maintenace/updates around this time.
    - We’re using the latest version of the plugin
    - It’s compatible with out WP version
    - We’re using the right PHP version
 * Would appreciate a speedy response on this if possible.
   Thanks in advance.
    -  This topic was modified 1 year, 9 months ago by [giuseppehex](https://wordpress.org/support/users/giuseppehex/).

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

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/javascript-potentially-not-loading/#post-17994288)
 * Hi, Giuseppe. Could you please share with us the URL of your tested page? (If
   you don’t want to publicly share it, please send us an email to support at nelio
   software dot com).
 *  Thread Starter [giuseppehex](https://wordpress.org/support/users/giuseppehex/)
 * (@giuseppehex)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/javascript-potentially-not-loading/#post-17994301)
 * Hey David,
 * Thanks for your speedy reply, I’ve dropped you an email.
 * I’ll leave this ticket open so I can add an update once resolved in case others
   experience something similar.
    -  This reply was modified 1 year, 9 months ago by [giuseppehex](https://wordpress.org/support/users/giuseppehex/).
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/javascript-potentially-not-loading/#post-18053997)
 * For anybody else experiencing this issue: keep in mind that the global object`
   nab` might not be available because our tracking script may not be included in
   the current page. This occurs, for example, when _previewing_ variants. So you
   gotta make sure that, whenever you want to use `nab` methods, you first make 
   sure that `nab` exists by wrapping it in an `if` statement like this:
 *     ```wp-block-code
       if ( window.nab ) {  nab.blahblah}
       ```
   

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

The topic ‘Javascript potentially not loading’ is closed to new replies.

 * ![](https://ps.w.org/nelio-ab-testing/assets/icon-256x256.png?rev=2514600)
 * [Nelio A/B Testing – AB Tests and Heatmaps for Better Conversion Optimization](https://wordpress.org/plugins/nelio-ab-testing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nelio-ab-testing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nelio-ab-testing/)
 * [Active Topics](https://wordpress.org/support/plugin/nelio-ab-testing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nelio-ab-testing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nelio-ab-testing/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/javascript-potentially-not-loading/#post-18053997)
 * Status: resolved