• Resolved toodlepip

    (@toodlepip)


    I’ve turned off JS optimisation for the moment, but have been coming up against a weird error.

    I’m using Elegant Themes’ Divi hosting on WPEngine and Autoptimize has been working great. However, it’s just been reported that tooltips aren’t working with Safari on Mac OSX (latest version). However, they’re fine on Chrome and Opera on Mac.

    I’ve tried all the combinations of the settings including excluding tooltip.min.js from the list of JS files optimised, but none of them seem to work.

    I’ve turned off JS optimisation for the moment, but wanted to flag it up in case anyone else has run into the problem.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    don’t have access to OSX myself, but if you do; what JS error do you see on Safari’s console @toodletip?

    Thread Starter toodlepip

    (@toodlepip)

    That’s the weird thing. No error message at all. Grepping the aggregated JS file, it looks like it’s been included but for some reason it’s not executing. I’ve tried across a couple of different machines in case it was just mine being odd.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that makes it hard, obviously…

    I see you’re not optimizing JS now, but I do get a JS error on the console now (when optimized, browsers often stop execution of the entire JS when an error is encountered);

    
    Uncaught ReferenceError: jQuery is not defined
        at custom.js?ver=1.0.4:19
    (anonymous) @ custom.js?ver=1.0.4:19

    It isn’t crystal-clear under what circumstances I should see a tooltip and where?

    Thread Starter toodlepip

    (@toodlepip)

    Legend! That solved the problem.

    For some reason WordPress wasn’t loading jQuery on that particular page whereas it was fine on the rest of the site. I added:

    wp_enqueue_script('jquery');

    into functions.php above the call that included the custom javascript and it’s working fine now. Thanks so much.

    • This reply was modified 6 years, 10 months ago by toodlepip.
    • This reply was modified 6 years, 10 months ago by toodlepip.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with Jquery Tooltip But Only On Safari’ is closed to new replies.