Programming
Load Youtube API and then Run a Script

Question Description

I need support with this Programming question so I can learn better.

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.


Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

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

sana naz (6)
UT Austin

Anonymous
Thanks for the help.

Anonymous
Outstanding. Studypool always delivers quality work.

Anonymous
Tutor was very helpful and took the time to explain concepts to me. Very responsive, managed to get replies within the hour.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4