• Resolved trojerucica

    (@trojerucica)


    Is there an easy way to run the script from the plugin again after I load some more SVG files using AJAX?

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

    (@benbodhi)

    Hi @trojerucica,

    Thanks for your support and interest ??

    I imagine you could somehow call it again, it’s handle is bodhi_svg_inline and it’s located at wp-content/plugins/svg-support/js/min/svgs-inline-min.js.

    You would need to write into your ajax to check if plugin SVG Support is active, if so, load that JS file when you need it to run again.

    I have not tested any of this, specifically, running the script again after there has been some images inlined from initial page load. If it plays up, then you could dequeue the script from my plugin and only load it using your ajax when you need to.

    I hope this helps. I’d love to know how you go.

    • This reply was modified 8 years, 2 months ago by Benbodhi.
    Thread Starter trojerucica

    (@trojerucica)

    Hey @benbodhi,

    Thanks for the reply! Decided to inline the icons straight into the bottom of the page and just use them as symbols, since client probably won’t need to reupload them after all.

    Plugin Author Benbodhi

    (@benbodhi)

    Hey @trojerucica,

    Cool, thanks for letting me know.. I will mark this thread as resolved.

    Thanks for your support!
    I’d be super appreciative if you took a minute to leave a review ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running the script again after you AJAX more SVG files’ is closed to new replies.