• Resolved Florian

    (@floll)


    Hi, I am researching ways to optimize load time on our pages. I noticed that this plugin loads a library called tippy.js on every single page. This library injects a huge blob of CSS in the head of every page. This does not seem efficient.

    Could you consider loading the different JS libraries separately instead of combining them via gulp and loading one single file?

    And could you consider loading the tippy CSS via wp_enqueue_style, not inject it via JS?

    This would make it easier to dequeue stuff that is not needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bryceadams

    (@bryceadams)

    Hi @floll! 🙂 Ah, I did it this way so it only loaded one file instead of two, but see what you mean. The JS file loads the CSS for the library. Perhaps if you can contact us through the app I can check if there’s a way to disable it for your site or if it’s needed, and then I could provide you with a way to run the JS without it until our next update?

    Thread Starter Florian

    (@floll)

    Thanks, I’ll try via the app! Might take a while.

    Plugin Author bryceadams

    (@bryceadams)

    Perfect, we’ll keep an eye out! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load tippy CSS via wp_enqueue_style’ is closed to new replies.