• Resolved geomagas

    (@geomagas)


    I am putting together a mu-plugin for my multisite setup that utilizes GoogleGraph. When the library is loaded, it prevents Site Kit’s graphs from working.

    I am aware of the workaround mentioned here and here. However, for my plugin needs, I have to load GoogleGraph everywhere, both on the front and back end, as well as on all of the network’s sites.

    Is there any (preferably elegant) way to go about that, besides switching to another graph library?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello @geomagas, thanks for reaching out and for your question regarding your mu-plugin. If you are looking to load this everywhere, both on the front and back end of your site then there isn’t many options available to you.

    The only option we could recommend to you that should work would be to load your chart in an iframe to isolate it from the other JavaScript on the pages where it’s being loaded. Is this something you have tried?

    Other than that, there isn’t anything we can suggest I’m afraid so hopefully the above is a solution that’s useful to you. If you need any other Site Kit assistance then please don’t hesitate to ask.

    Thread Starter geomagas

    (@geomagas)

    Thank you for your quick response.

    I must say, between using an iframe and switching graph libraries, the latter seems preferable to me. Although, I sure hope someone else finds your suggestion more useful for their needs.

    I also hope that you guys eventually come up with a way to make your plugin play nice with other plugins that use GoogleCharts. After all, they are both Google’s products.

    Thanks again.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @geomagas Thanks for your feedback and no problem at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.