• Please don’t be dependent on the jQuery lib. Your js script do not need to load intially and ddon’t need jquery could be done with vanilla and cause less issues once defer jquery.

    Seeing this at the moment, any ideas?

    jQuery.Deferred exception: joli_toc_vars is not defined ReferenceError: joli_toc_vars is not defined
        at HTMLDocument.<anonymous>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Rookie

    (@alriksson)

    @wpjoli any idea?

    Using updated version of jquery as wordpress soon update to 3.5.1 themselves.

    Think though it is something with later version of WP as it started to happened then.

    • This reply was modified 4 years, 2 months ago by Rookie.
    Plugin Author WPJoli

    (@wpjoli)

    I’m not sure yet what is causing this but if you didn’t change anything and started to happen then it may be caused by some external update.

    You did not disable javascript on the plugin, did you ?

    Thread Starter Rookie

    (@alriksson)

    Exactly, as I have not seen any updates in a long time I’m pretty sure it’s a conflict with another plugin or wordpres 5.5.x

    It was at the time of update to 5.5.1 I. started to see this.

    You did not disable javascript on the plugin, did you?

    Disable js no? It is deferred or delayed but has always been. But that does not seem the be the issue here. As it execute after the jquery lib anyhow.

    Thread Starter Rookie

    (@alriksson)

    @wpjoli Any update on this?

    Thread Starter Rookie

    (@alriksson)

    @wpjoli Did you manage to look into this bug? Using jquery 3.5.1. Would be better to use vanilla js to stop interfering with any jquery version and the jquery lib.

    Thread Starter Rookie

    (@alriksson)

    Also found a lot of unused js in wpjoli-joli-toc.min.js, there is a lot that cna be removed if not used here. If I don’t use unfold and sticky from joli then I don’t need this js. Is there a way you could remove and only apply what is used?

    In my case all I need is offset. I could unload your js as everything works without console errors then. And just load a js file with offset.

    Found out it doesnt work to force inline of the script and this is causing the issue. But would anyhow prefer to remove js that isn’t used here.

    • This reply was modified 4 years ago by Rookie.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘jQuery.Deferred exception’ is closed to new replies.