Title: No Conditional loading on Pro version
Last modified: December 22, 2016

---

# No Conditional loading on Pro version

 *  [badlydrawnben](https://wordpress.org/support/users/badlydrawnben/)
 * (@badlydrawnben)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/no-conditional-loading-on-pro-version/)
 * (sending support request here because the support ticket system for the Pro version
   is broken)
 * Hi,
 * I think in the latest version of the free plugin you added some conditionality
   functionality so the js files were only loaded on a page where there’s a background
   video set? (Rather than load on all pages)
 * ​I don’t think this is in the Pro version yet though. When I used the free version
   the videos in the carousel on this page [https://emct.charitywebdesigns.co.uk/why-we-matter/​](https://emct.charitywebdesigns.co.uk/why-we-matter/ )
   loaded and played OK in their lightboxes. But with the Pro version they won’t
   play because of a js error :
 * Uncaught TypeError: Cannot read property ‘length’ of undefined at window.onYouTubePlayerAPIReady(
   vidbgpro.min.js?ver=1.1.4:8)
 * I want to use the Pro version because I need to stream the BG video from YouTube
   rather than from the server. It’s only on this page [https://emct.charitywebdesigns.co.uk/what-we-do/​](https://emct.charitywebdesigns.co.uk/what-we-do/ )
 * P.S. Another quirk is that on my Android phone with Chrome, it will show the 
   fallback image if I’m using a YouTube bg video, but it will actually play the
   bg video if it’s set to use the mp4 version on the site.
 * Thanks,
 * Ben

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [blakedotvegas](https://wordpress.org/support/users/blakedotvegas/)
 * (@blakedotvegas)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/no-conditional-loading-on-pro-version/#post-8771524)
 * Hi Ben,
 * I’m sorry I’m just seeing this now. For some reason WordPress unsubscribed me
   from all my plugin comments and I was no longer receiving them.
 * Are you still experiencing this issue with Video Background and Video Background
   Pro?
 * Additionally, yes, Android has released some new abilities to play video backgrounds
   on mobile. This will be addressed in the next release of Video Background and
   Video Background Pro.
 * Thanks for using Video Background.
 * Blake

Viewing 1 replies (of 1 total)

The topic ‘No Conditional loading on Pro version’ is closed to new replies.

 * ![](https://ps.w.org/video-background/assets/icon-256x256.png?rev=2774411)
 * [Video Background](https://wordpress.org/plugins/video-background/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-background/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-background/)
 * [Active Topics](https://wordpress.org/support/plugin/video-background/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-background/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-background/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [blakedotvegas](https://wordpress.org/support/users/blakedotvegas/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/no-conditional-loading-on-pro-version/#post-8771524)
 * Status: not resolved