Title: AJAX initialisation?
Last modified: August 21, 2016

---

# AJAX initialisation?

 *  [pixel-shock](https://wordpress.org/support/users/pixel-shock/)
 * (@pixel-shock)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/ajax-initialisation/)
 * Hi,
 * first: THX for your work 🙂
 * Is it possible to init the video-player-script after an AJAX-call?
    I don’t get
   it work, because vjs or videojs objects are “undefined” if I try to call it after
   my AJAX stuff.
 * If I take a look into the networkpanel I can’t see any JS files from videojs –
   only the css files – but the js files should be loaded in the head – right?
 * Cheers
    Tino
 * [https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/](https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * (@nosecreek)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/ajax-initialisation/#post-5056317)
 * In the latest version the js files are enqueued right before the closing `</body
   >` tag.

Viewing 1 replies (of 1 total)

The topic ‘AJAX initialisation?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/videojs-html5-video-player-for-wordpress.
   svg)
 * [Video.js - HTML5 Video Player for Wordpress](https://wordpress.org/plugins/videojs-html5-video-player-for-wordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/videojs-html5-video-player-for-wordpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dustin Lammiman](https://wordpress.org/support/users/nosecreek/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/ajax-initialisation/#post-5056317)
 * Status: not resolved