Title: Public JS API
Last modified: November 26, 2018

---

# Public JS API

 *  Resolved [maerygr](https://wordpress.org/support/users/maerygr/)
 * (@maerygr)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/public-js-api/)
 * Hi,
 * On one of the project that is using plugin, a have case when I need couple of
   recipes load using ajax. So I’ve created action that sends content of recipe 
   but JS don’t apply to it. Do you have any public API call to make reinitialize
   once again rather than load once again JS file (it’s double rating and some other
   components)?
 * PS: maybe simple way will be add some function like window.mediavine_init(#id_of_container)
   or something like that.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [mediavine](https://wordpress.org/support/users/mediavine/)
 * (@mediavine)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/public-js-api/#post-10949980)
 * Hello,
 * Sorry for the delay in response! We don’t currently have a public API like that
   currently, but this is a great suggestion. We’ll get it into a future release
   and I’ll post back here once that release is out.
 * Thanks,
    Ethan Mediavine
 *  Thread Starter [maerygr](https://wordpress.org/support/users/maerygr/)
 * (@maerygr)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/public-js-api/#post-10958428)
 * Hi, so for my implementation I used ajax loading script for plugin, but sometimes
   when page does not have plugin initialized.
 * I have following error:
 * [https://prnt.sc/lrz7xv](https://prnt.sc/lrz7xv)
 * Maybe you know why it happens?
 * Thanks!
    -  This reply was modified 7 years, 6 months ago by [maerygr](https://wordpress.org/support/users/maerygr/).
    -  This reply was modified 7 years, 6 months ago by [maerygr](https://wordpress.org/support/users/maerygr/).
 *  Plugin Author [mediavine](https://wordpress.org/support/users/mediavine/)
 * (@mediavine)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/public-js-api/#post-10959898)
 * Hi, [@maerygr](https://wordpress.org/support/users/maerygr/)!
 * We’re happy to give this a look. If you want to join our Slack channel, we can
   chat with you in real time to get this sorted out.
 * Follow [this link](https://publicslack.com/slacks/mediavine-tech/invites/new)
   to join the Slack room! 🙂
 * Thanks!
    John-Michael Mediavine
 *  Plugin Author [mediavine](https://wordpress.org/support/users/mediavine/)
 * (@mediavine)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/public-js-api/#post-10990292)
 * Hi! Just wanted to follow up on this issue. We refactored some thing for the 
   1.2.3 release, and this is now possible. You can do:
 * `window.mvCreate.init(DOM_NODE)`
 * where `DOM_NODE` is any DOM node that contains a card, defaulting to `document`.
 * Please let us know if this helps!
 * Ethan
    Mediavine
    -  This reply was modified 7 years, 5 months ago by [mediavine](https://wordpress.org/support/users/mediavine/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Public JS API’ is closed to new replies.

 * ![](https://ps.w.org/mediavine-create/assets/icon.svg?rev=3387082)
 * [Create](https://wordpress.org/plugins/mediavine-create/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mediavine-create/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mediavine-create/)
 * [Active Topics](https://wordpress.org/support/plugin/mediavine-create/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mediavine-create/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mediavine-create/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)

 * 4 replies
 * 2 participants
 * Last reply from: [mediavine](https://wordpress.org/support/users/mediavine/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/public-js-api/#post-10990292)
 * Status: resolved