• Resolved donbowman

    (@donbowman)


    For pages that i am not doing an A/B test on, i still have 3 javascript files enqueued:

    • alternative-loader-fake.js
    • kickoff.js
    • main.js

    is it possible in my functions.php to detect if the current page has a test, and dequeue them? or is there some what in the plugin itself to avoid the enqueue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter donbowman

    (@donbowman)

    after some looking at the code, it seems if there is any page on the site with a heatmap setup, then all pages get the scripts enqueued, regardless of the nab_optional_frontend_scripts value. even if the page i am visiting does not have a heatmap or a/b experiment.

    Plugin Author Antonio Villegas

    (@avillegasn)

    Hi @donbowman,

    We have changed the frontend scripts and merged them into only one that is enqueued in a more smart way. We are still testing this change and will release it as a new version of Nelio A/B Testing in a couple of weeks.

    We will take into account your feedback on this for this next release.

    Thread Starter donbowman

    (@donbowman)

    ok thank you, i look forward to it.

    Plugin Author David Aguilera

    (@davilera)

    Nelio A/B Testing 6.0 (coming soon) combines all front-end scripts into a single one and it does no longer use the hook nab_optional_frontend_scripts.

    Starting with 6.0, Nelio’s tracking script will only be enqueued if (a) the requested page has a heatmap running on it or (b) there’s one or more split tests running on your website.

    Notice that the tracking script will be added on all pages if there’s a split test running. That’s because, even if the test is testing a concrete page on your website, conversions can occur (in principle) on any page and, therefore, we need to add the script everywhere.

    With that said, one of the features we have in our roadmap includes additional settings to select where conversions can occur. Once that’s included in a future release, the plugin will honor those settings and load the tracking script if (a) there’s a heatmap, (b) the page is under test, or (c) the page can trigger a conversion from a test running on another page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to avoid enque the javascript for pages not under test?’ is closed to new replies.