Load Youtube API and then Run a Script

User Generated

jversenzr74

Programming

Description

I have an issue in getting the youtube API to load in time so that it works with slider script. Better if all scripts were loaded at same time so everything is ready.

Found some info on google tho not sure how to appy this to my script:

https://www.google.com.au/search?q=jquery+load+youtube+api&ie=UTF-8&oe=UTF-8&hl=en&client=safari

The javascript has been applied here:

http://www.ravenswood.nsw.edu.au/ravenswood-demo/

Basically everything works except if you play youtube video as page is loading the slider still scrolls thro whereas it should stop so you can watch video.

It only happens on the first slide..So there is an issue of downloading the Youtube API script. IF you click on play button later as script is fully downloaded it works fine.

It works sometimes but not others.

Slider script is here: wp-content/themes/ravenswood/js/contentslider.jquery.js

and also called within head of page.

Help greatly appreciated.


User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

www.unblockyoutube.com.org kindly aplly this link on it hope it works


Anonymous
Great content here. Definitely a returning customer.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags